Learn R Programming

scpm (version 2.0.0)

A2. Define linear terms: Linear components of the mean of the model

Description

Define parametric components of the mean as linear terms.

Usage

linear(formula, data = NULL, contrasts = NULL, intercept = FALSE)

Arguments

formula

formula expression. A formula expression as described in formula.

data

data frame. Where to search for the covariates?

contrasts

character. A contrast method for factor covariates. Default to contr.treatment.

intercept

logical. TRUE to include an intercept term, FALSE otherwise (default).