Learn R Programming

segmented (version 0.5-1.1)

intercept: Intercept estimates from segmented relationships

Description

Computes the intercepts of each `segmented' relationship in the fitted model.

Usage

intercept(ogg, parm, gap = TRUE, rev.sgn = FALSE, var.diff=FALSE,
    digits = max(3, getOption("digits") - 3))

Arguments

ogg
an object of class "segmented", returned by any segmented method.
parm
the segmented variable whose intercepts have to be computed. If missing all the segmented variables in the model are considered.
gap
logical. should the intercepts account for the (possible) gaps?
rev.sgn
vector of logicals. The length should be equal to the length of parm, but it is recycled otherwise. When TRUE it is assumed that the current parm is `minus' the actual segmented variable, therefore the sign i
var.diff
Currently ignored as only point estimates are computed.
digits
controls number of digits in output.

Value

  • intercept returns a list of one-column matrices. Each matrix represents a segmented relationship.

Details

A broken-line relationship means that a regression equation exists in the intervals `$min(x)$ to $\psi_1$', `$\psi_1$ to $\psi_2$', and so on. intercept computes point estimates of the intercepts of the different regression equations for each segmented relationship in the fitted model.

See Also

See also slope to compute the slopes of the different regression equations for each segmented relationship in the fitted model.

Examples

Run this code
## see ?slope
intercept(out.seg)

Run the code above in your browser using DataLab