breakpoint: Breakpoint value by covariate pattern

View source: R/breakpoint.r

breakpointR Documentation

Breakpoint value by covariate pattern

Description

Computes point estimate, its standard error and confidence interval for breakpoint parameter modelled as a function of one or more covariates in a segmented mixed model

Usage

breakpoint(ogg, by = NULL, conf.level = 0.95, vcov. = NULL, use.link=TRUE, ...) 

Arguments

ogg

an object of class "segmented.lme"

by

It is a named list indicating covariate names and corresponding values affecting the breakpoint location. For instance, by=list(group="2",z2=.2), provided that the model has been fitted by specifying group and z2 in z.psi

conf.level

the specified confidence level

vcov.

The full covariance matrix of estimates. If unspecified (i.e. NULL), the covariance matrix is computed internally by vcov(ogg)

use.link

If TRUE, the changepoint value is returned on the scale used in the model fit, otherwise values always on the linear scale are returned.

...

Optional arguments to be passed to vcov.segmented.lme

Details

If the logit link is used for the changepoints, the returned standard error is computed via the Delta method.

Value

A 1-row matrix with 4 columns

Author(s)

Vito Muggeo

See Also

segmented.lme


segmented documentation built on Nov. 24, 2026, 5:09 p.m.