Learn R Programming

scpm (version 2.0.0)

A3. Define unknown changes: Changes in the pattern of response

Description

Define unknown changes in the pattern of response to be estimated.

Usage

cp(x, psi, data = NULL, groups = NULL, contrasts = NULL,
        only.UV = FALSE)

Arguments

x

numeric vector. Covariate over which range define unknown change-points.

psi

numeric vector. Starting values for the change-points.

data

data frame. Where to search for the covariate?

groups

not used at the moment. To be implemented.

contrasts

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

only.UV

logical. Not required.