Description Usage Arguments Value Author(s) References See Also Examples
A wrapper function for the aov
function, which performs a standard ANOVA.
1 | basicAnova(Data, Treatment, Response, WeightList)
|
Data |
A data set. |
Treatment |
The name (as a string) of the treatment variable. |
Response |
The name (as a string) of the response variable. |
WeightList |
The name (as a string) of the variables containing the weight for ANOVA. Set this value to NULL to indicate that weights are not being used. |
Sum Sq |
The within treatment sum of squares. |
Df |
The degrees of freedom. |
F value |
The value of the F-statistic. |
Pr(>F) |
The p-value corresponding to the F statistic. |
Signif |
The significance flag for the where "." is a p-value > 0.05, "*" is a 0.01 < p-value <= 0.05, "**" for 0.001 < p-value <= 0.01, and "***" for p-value <= 0.001. |
Joe Swintek
Chambers, J. M., Freeny, A and Heiberger, R. M. (1992) emphAnalysis of variance; designed experiments
Chapter 5 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole
1 2 3 4 5 6 7 8 9 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='16 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
basicAnova(Data=SubData, Treatment='Treatment',
Response='WEIGHT',WeightList=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.