Description Usage Arguments Value Author(s) References Examples
Prepares design matrix for nested model with groups and subgroups and response vector in corresponding order.
1 |
response |
Response vector as provided (numeric). |
group |
Vector of group labels as provided (either numeric or character). |
subgroup |
Vector of subgroup labels as provided (either numeric or character). |
Returns a list with following components.
X |
A binary matrix with number of rows equal to length of response and number of columns equal to the total number of levels of treatments and blocks plus one. Each row has exactly three 1s: in the first position and in the two positions representing the group and the subgroup. |
y |
Numeric vector of response values, permuted to correspond with the rows of X. |
Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.