slopes: Regression Slopes \boldsymbol{beta}_{2, \cdots, k}

Description Usage Arguments Details Value Author(s) See Also

View source: R/beta.R

Description

Derives the slopes \boldsymbol{β}_{2, \cdots, k} of a linear regression model (\boldsymbol{β} minus the intercept) as a function of covariances.

Usage

1
slopes(X, y)

Arguments

X

n by k numeric matrix. The data matrix \mathbf{X} (also known as design matrix, model matrix or regressor matrix) is an n \times k matrix of n observations of k regressors, which includes a regressor whose value is 1 for each observation on the first column.

y

Numeric vector of length n or n by 1 matrix. The vector \mathbf{y} is an n \times 1 vector of observations on the regressand variable.

Details

The linear regression slopes are calculated using

\boldsymbol{β}_{2, \cdots, k} = \boldsymbol{Σ}_{\mathbf{X}}^{T} \boldsymbol{σ}_{\mathbf{y}, \mathbf{X}}

where

Value

Returns the slopes \boldsymbol{β}_{2, \cdots, k} of a linear regression model derived from the variance-covariance matrix.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other parameter functions: .intercept(), .slopesprime(), .slopes(), intercept(), sigma2epsilon(), slopesprime()


jeksterslabds/jeksterslabRlinreg documentation built on Jan. 7, 2021, 8:30 a.m.