locReg: Perform local regression for specified window

Description Usage Arguments Value Author(s) See Also Examples

View source: R/functions.R

Description

Local Regression Function.

Usage

1
locReg(wins, xall, yall, resids = FALSE)

Arguments

wins

A matrix of vector positions, where wins[,1] contains left boundary positions, and wins[,2] contains right boundary positions for the desired local regressions. Default behaviour is optimized for use with getWindows in rankLocReg, but can accept user-defined windows.

xall

A numeric vector.

yall

A numeric vector.

resids

Logical. Are residuals to be returned?

Value

A data frame if resids is FALSE. A list if resids is TRUE.

Author(s)

Colin Olito and Diego Barneche.

See Also

getWindows, rankLocReg.

Examples

1
2
3
4
5
# load sea urchin respirometry data
data(UrchinData)
# rank L metric by method 'eq'
wins  <-  getWindows(x=UrchinData$D, alpha=0.3)
reg   <-  locReg(wins[1, ], xall=UrchinData$time, yall=UrchinData$D, resids=TRUE)

colin-olito/LoLinR documentation built on May 13, 2019, 9:54 p.m.