init_values
is an auxiliary function for rlassoHAC, for fitting linear models with
the method of least squares where only the variables in X with highest correlations
are considered; taken from package hdm.init_values
is an auxiliary function for rlassoHAC, for fitting linear models with
the method of least squares where only the variables in X with highest correlations
are considered; taken from package hdm.
init_values(X, y, number = 5, intercept = TRUE)
Regressors (matrix or object can be coerced to matrix).
Dependent variable(s).
How many regressors in X should be considered.
Logical. If TRUE, intercept is included which is not penalized.
init_values returns a list containing the following components:
Residuals.
Estimated coefficients.