model.matrix.stepmented: Design matrix for stepmented fits

View source: R/model.matrix.stepmented.r

model.matrix.stepmentedR Documentation

Design matrix for stepmented fits

Description

This function builds the model matrix for stepmented fits.

Usage

## S3 method for class 'stepmented'
model.matrix(object, type=c("cdf","abs","none"), k=NULL, ...)

Arguments

object

A stepmented fit

k

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

type

The approximation for the indicator function/absolute value. If "none", the simple matrix with the original indicator values is returned. type='abs' is not yet allowed.

...

additional arguments

Details

If type="none", model.matrix.stepmented return the design matrix including the indicator function values and ignoring the psi terms.

Value

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

Author(s)

Vito Muggeo

See Also

See Also as model.matrix, vcov.stepmented


segmented documentation built on Oct. 25, 2024, 5:07 p.m.