tidymod_lm_matrix: OLS estimation - Matrix

Description Usage Arguments Value Examples

Description

The function conduct the very common OLS estimation, which minimizes the sum of squared residuals.

Usage

1

Arguments

X

is the covariate matrix, which contains all explanatory variables. Has to be a matrix or be convertible with as.matrix()

Y

is the explained variable. Has to be numeric or be convertible with as.numeric()

Value

A list is returned containing the following elements coefficients, standard errors, degrees of freedom, variance-covariance matrix, fitted values, residuals, data used in the regression, the call, the intercept and the formula

Examples

1

elben10/tidymodelR documentation built on May 14, 2019, 8:34 a.m.