Learn R Programming

vdra (version 1.0.0)

differentModel: Fitting Different Linear Models

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

differentModel(formula, x)

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

Run this code
# NOT RUN {
    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)
# }

Run the code above in your browser using DataLab