segmentFUN: A Segmented Regression Function.

Description Usage Arguments Examples

View source: R/segmentFUN.R

Description

A function for finding a number of linear fits within a dataset.

Usage

1
2
segmentFUN(x, obs, comparison.value, date, min.length, break.points,
  plot = FALSE, plot.title = NA)

Arguments

obs

This is the numeric column under investigation.

comparison.value

This is the data to compare the obs against.

date

Date column.

min.length

This is the length of the comparison value sample to draw the break points from.

break.points

Number of break points within the data (will make break.point + 1 regressions).

plot

Option to create a plot with the break points. Defaults to 'FALSE'.

plot.title

If plot is 'TRUE' this command provides an option for giving the plot a title.

Examples

1

gmiskell/lurFunctions documentation built on May 17, 2019, 7:06 p.m.