Literally, insert "+ cov" without quotation marks and where cov is the name of the variable you want to use as the covariate. You do that by changing line 124 in the posted script file to add the covariate before the right parentheses. Run ANCOVAs using each of those possible covariates (one by one). In that data set, there are 3 possible covariates that might be applied here: age, height, and initial. We found no difference across the 3 diets for men, but they did differ in their effectiveness for women. Using the script file called "TwoWayBetween_ANOVA Diet data.R" attached below, where we look at the effects of type of diet and gender on weight change. In the script file "One-way ANOVA.R" found in the below attachment, the example concludes the ANCOVA without doing any follow-up comparisons even though the factor was significant. Syntax highlighting editor with code completion. Some of its features include: Customizable workbench with all of the tools required to work with R in one place (console, source, plots, workspace, help, history, etc.). csv files (for Excel or Minitab which I prefer) but they didn't run then. RStudio is an integrated development environment (IDE) for the R programming language. Maybe you have them already, I tried to convert them into.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |