differentModel: Fitting Different Linear Models

Description Usage Arguments Value See Also Examples

View source: R/vertical_utilities.R

Description

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.

Usage

1

Arguments

formula

an object of class "formula": a symbolic description of the model to be fitted. The model must be additive with no interactions.

x

an object of class vdralinear.

Value

Returns an object of class vdralinear.

See Also

AnalysisCenter.2Party, AnalysisCenter.3Party, AnalysisCenter.KParty

Examples

1
2
3
4
5
    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)

vdra documentation built on Sept. 9, 2021, 9:10 a.m.