SubsetLM: Fit Linear Model on A Subset of Design Matrix

View source: R/SubsetLM.R

SubsetLMR Documentation

Fit Linear Model on A Subset of Design Matrix

Description

This function is for fitting a linear model of response Y on a subset of design matrix X.

Usage

SubsetLM(Y, X, ind)

Arguments

Y

Response vector.

X

Full design matrix.

ind

Set of columns of X to be used in the linear model.

Value

beta: a vector of estimated coefficients, with non-zero elements for variables being used and 0's for others.


xue-hr/TScML documentation built on March 1, 2023, 9:50 p.m.