BY {sasLM} | R Documentation |
Analysis BY variable
Description
GLM, REG, aov1 etc. functions can be run by levels of a variable.
Usage
BY(FUN, Formula, Data, By, ...)
Arguments
FUN |
Function name to be called such as GLM, REG |
Formula |
a conventional formula for a linear model. |
Data |
a |
By |
a variable name in the |
... |
arguments to be passed to |
Details
This mimics SAS procedues' BY clause.
Value
a list of FUN
function outputs. The names are after each level.
Author(s)
Kyun-Seop Bae k@acr.kr
Examples
BY(GLM, uptake ~ Treatment + as.factor(conc), CO2, By="Type")
BY(REG, uptake ~ conc, CO2, By="Type")
[Package sasLM version 0.10.4 Index]