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_split, model)
df |
( |
model |
( |
df_split |
( |
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, a list of such
lists is returned, one for each stratum.
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 for each stratum separately.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.