powered by
GLM, REG, aov1 etc. functions can be run by levels of a variable.
BY(FUN, Formula, Data, By, ...)
a list of FUN function outputs. The names are after each level.
FUN
Function name to be called such as GLM, REG
a conventional formula for a linear model.
a data.frame to be analyzed
data.frame
a variable name in the Data
Data
arguments to be passed to FUN function
Kyun-Seop Bae k@acr.kr
This mimics SAS procedues' BY clause.
BY(GLM, uptake ~ Treatment + as.factor(conc), CO2, By="Type") BY(REG, uptake ~ conc, CO2, By="Type")
Run the code above in your browser using DataLab