lm_dr: Linear Regression with Drift

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Perform a linear regression with drift.

Usage

1
lm_dr(x)

Arguments

x

A vec of length N x 1 containing the responses.

Value

A field<vec> with:

coef

Coefficients

resid

Residuals

sigma2

Sigma^2

Examples

1
2
3
4
5
6
x = 1:10
y = cumsum(rep(.7,10))

lm_dr(y)[[1]]

coef(lm(y~x-1))

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.