coef_comp: Functions for linear regression model coefficients extraction

Description Usage Arguments Value Author(s) See Also Examples

Description

The functions computes regression coefficients from a linear model.

Usage

1
2
3
4
5
lmCoef(X, Y)

rlmCoef(X, Y)

l1Coef(X, Y)

Arguments

X

the model (design) matrix of independent variables

Y

the vector of dependent variable (time series)

Value

The numeric vector of regression coefficients

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

See Also

lm, rlm, rq

Examples

1
2
3
4
5
6
design_matrix <- matrix(rnorm(10), ncol = 2)
lmCoef(design_matrix, rnorm(5))

rlmCoef(design_matrix, rnorm(5))

l1Coef(design_matrix, rnorm(5))

TSrepr documentation built on July 13, 2020, 9:07 a.m.