| get_lm_input | R Documentation |
Prepare the input data for a linear model based on the provided data frame and model formula.
h_get_lm_input(df, model)
h_get_strat_lm_input(df_with_stratum, model)
df |
( |
model |
( |
df_with_stratum |
( |
A list containing for each element of the treatment factor a list with the
corresponding model matrix X and the response vector y. For the stratified version,
the model matrix X includes the .stratum column.
h_get_lm_input(): Get the linear model input data for the overall data set.
h_get_strat_lm_input(): Get the linear model input data with attached stratum column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.