Description Usage Arguments Details Value Author(s) References See Also Examples
This function runs a mixed effect ANOVA.
1 2 3 | runMultiGen(Data, TreatVar = "", ResponVar = "",
RepVar = "Not Used", TimeVar = "Not Used",
Path, TestDirection = "Descending",alpha=0.05)
|
Data |
A data set. |
TreatVar |
Name (as a string) of the treatment variable. |
ResponVar |
Name (as a string) of the response variable. |
RepVar |
Name (as a string) of the replicate variable. |
TimeVar |
Name (as a string) of the time variable. |
Path |
Path indicates the type of mixed effects analysis performed. Use Path = 2 for Time (Repeated Measures) and Path = 3 Group - Replicate (Mixed Effects). |
TestDirection |
Indicates the test direction. This can be c('Both', 'Descending', 'Ascending'). |
alpha |
Alpha level used in calculating confidence intervals. |
This is mostly a wrapper function for nlme
from the nlme package and glht
from the multcomp package.
Returns a list with the following items:
Anova.Table |
An ANOVA table see |
MainEffects |
A table of main effect, see |
FreqTable |
A table of frequencies of occurrences for every sub group in the data set. |
Lmm |
A nlme class data structure from |
ShapiroTest |
The results from a Shapiro-Wilks test. See |
Joe Swintek
Pinheiro, J.C., and Bates, D.M. (2000) Mixed-Effects Models in S and S-PLUS, Springer
1 2 3 4 5 6 7 8 9 10 11 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='8 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
runMultiGen(Data=SubData, TreatVar = "Treatment",
ResponVar = "WEIGHT", RepVar = 'Replicate', TimeVar = "Not Used",
Path=3, TestDirection = "Descending")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.