Description Usage Arguments Value
This function fits a linear model with a given treatment effect. For that, it pre processes the data with the given effect and returns the fitted linear model. An unadjusted linear model can be generated with setting 'effects' to 'NA'.
1 2 3 4 5 6 7 8 9 10 | fit.adj.lm(
data,
outcome,
exposure,
variables,
id,
time_col,
effects = NA,
one.hot = FALSE
)
|
data |
Data Frame with patient data |
outcome |
name of the outcome variable column |
exposure |
name of the exposure variable column |
variables |
vector of names of other variables |
effects |
list of effects for |
one.hot |
boolean weather the exporure variable is on hot encoded or not- |
fitted linear model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.