
Notice that there is some variation in this script from previous ones. To test this script, copy it from the raw text of this Gist and paste it into the Source Editor pane of RStudio.

Model <- lm(response ~ color, data = ergData) # read in the blue and green color data from a CSV file Here is an R script that is set up to run the first ANOVA shown in Section 3.1: See section 0.2.1 for the details on how to access a file by that method. After entering the data, save the file in CSV format in a location where it can be accessed via the "file open dialog" command. To avoid accidentally misspelling the category name, it is best to type it in the first cell, then paste it into the other cells. Note: the names used to assign a row to a given category must be exactly the same in every row. The format of the table is the same as what was described in section 0.2.1: one column should contain the continuous data to be analyzed and the other should contain values that assign the row to a category (a "grouping variable"). Although it is possible to enter the data directly into the script, it is more likely that you will want to load the data from a CSV file, probably one created using Excel or some other spreadsheet software. To perform a single factor ANOVA using RStudio, you need to set up a table with two columns.


Scientific Literature Guide Toggle Dropdown.5 Reporting the Results of a Statistical Test.3.2 ANOVA with more than two treatment groups.3.1 ANOVA basics with two treatment groups.2.6 Conducting a chi-squared contingency test using R.2.4 Conducting a chi squared contingency test using Excel.2 Joint probability and the Chi Squared Contingency test.1.7 Conducting a Chi Squared Goodness of Fit test using R.1 Probabilities, frequencies, and the Chi Squared Goodness of Fit test.0.3.1 Running a paired t-test using RStudio.0.3 Paired t-test (Section 8 in the fall stats manual).0.2.2 Creating a bar chart with error bars using RStudio.

0.2.1 Running a t-test of means using RStudio.0.2 The t-test of Means (Section 7 in the fall stats manual).0.1 Linear regression (Section 6 from fall stats manual).ResponseCard (“Clicker”), ResponseWare, and Reading Assessment Quiz (RAQ) Information
