powered by
GLM is the main function of this package.
GLM(Formula, Data, lsm=FALSE, conf.level=0.95, eps=1e-8)
a conventional formula for a linear model.
a data.frame to be analyzed
data.frame
if TRUE, least square mean will be in the output
TRUE
confidence level for the confidence limit of the least square mean
Less than this value is considered as zero.
The result is comparable to that of SAS PROC GLM.
ANOVA table for the model
Type I sum of square table
Type II sum of square table
Type III sum of square table
Parameter table with standard error, t value, p value
Least square mean table with confindence limit
It performs the core function of SAS PROC GLM. Least square means for the tnteraction term of three variables is not supported yet.
# NOT RUN { GLM(uptake ~ Type*Treatment + conc, CO2[-1,]) # Making data unbalanced GLM(uptake ~ Type*Treatment + conc, CO2[-1,], lsm=TRUE) # }
Run the code above in your browser using DataLab