lm_beta: coef for linear regression

Description Usage Examples

View source: R/lm_beta.R

Description

coef for linear regression

Usage

1
lm_beta(X,Y)

Examples

1
2
3
4
5
6
n=100
p=4
X<-matrix(rnorm(n*p),nrow=n)
beta=c(1,2,3,4)
Y=X%*%beta
lm_beta(X,Y)

ssslix/slx documentation built on Dec. 23, 2021, 4:32 a.m.