View source: R/vertical_utilities.R
differentModel | R Documentation |
Models are specified symbolically. A typical model is of the form response ~ term_1 + term_2 + ... + term_k
where response
and term_i
are variables names used in the orgional linear model which created the object x
. The response
can be the orginal respose or any of the other covariates. Interactions are not allowed. Not all variables in the original model have to be used.
differentModel(formula, x)
formula |
an object of class |
x |
an object of class |
Returns an object of class vdralinear
.
AnalysisCenter.2Party
, AnalysisCenter.3Party
, AnalysisCenter.KParty
fit = differentModel(Change_BMI ~ Exposure + Age + NumRx, vdra_fit_linear_A)
summary(fit)
fit = differentModel(Age ~ Change_BMI + Exposure + NumRx, vdra_fit_linear_A)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.