Learn R Programming

segmented (version 2.0-2)

model.matrix.stepmented: Design matrix for stepmented fits

Description

This function builds the model matrix for stepmented fits.

Usage

# S3 method for stepmented
model.matrix(object, k=NULL, apprx=c("cdf","abs"), ...)

Value

The design matrix for a stepmented regression model with the specified formula and data

Arguments

object

A stepmented fit

k

The (negative) exponent of the sample size to approximate the absolute value; see vcov.stepmented

apprx

The approximation of the absolute value.

...

additional arguments

Author

Vito Muggeo

Details

model.matrix.stepmented

See Also

See Also as model.matrix, vcov.stepmented