piecewise: Piecewise regression

Description Usage Arguments Value Examples

View source: R/piecewise.R

Description

takes the x value and plots a line until it hits the change point defined by xk, then plots a different line to make a piecewise regression graph.

Usage

1
piecewise(x, xk, coef)

Arguments

x

Number

xk

Number

coef

Numeric Vector

Value

Numeric

Examples

1
curve(myf(x, xk, coef), add = TRUE, lwd = 2, col = "Blue")

Nathanv97/vand6485 documentation built on May 7, 2020, 1:06 p.m.