segment: Segmented Model

Description Usage Arguments Value

View source: R/segment.R

Description

Computes the basis for a segmented model. Used primarily in a linear regression or load model.

Usage

1
segment(x, psi)

Arguments

x

the data to segment. Missing values are permitted and result corresponding in missing values in output.

psi

a numeric vector of the breakpoints.

Value

A matrix contining a column named X of the data in x and paired U and P columns for each of the breaks in psi that form the basis for that segment.


USGS-R/rloadest documentation built on Oct. 2, 2020, 5:21 a.m.