| BY | R Documentation |
Functions such as GLM, REG, and aov1 can be run by levels of a variable.
BY(FUN, Formula, Data, By, ...)
FUN |
Function name to be called, such as GLM or REG |
Formula |
a conventional formula for a linear model. |
Data |
a |
By |
a variable name in the |
... |
arguments to be passed to |
This mimics the BY clause of SAS procedures.
a list of FUN function outputs. The names of the list are the levels of the By variable.
Kyun-Seop Bae k@acr.kr
BY(GLM, uptake ~ Treatment + as.factor(conc), CO2, By="Type")
BY(REG, uptake ~ conc, CO2, By="Type")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.