Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/getDesignMatrix.R
Converts all factors and interactions to indicator variables, suitable for passing to WinBUGS.
1 |
formula |
A |
data |
A data frame containing the covariates and factors for random effects |
effects |
A vector of character strings containing the grouping levels, from most general to most specific |
The most populous level of a factor is made the baseline.
A matrix containing the covariates, the response(s), and the random effect factors. Also attributes
covariates |
A list giving the covariates which apply at each level, suitable for passing to |
response |
A vector of character strings giving the responses |
Patrick Brown
1 2 3 4 5 | library(nlme)
data(Muscle)
muscleDesign = getDesignMatrix(conc ~ length, data=Muscle, effects="Strip" )
attributes(muscleDesign)$covariates
attributes(muscleDesign)$response
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.