powered by
MyLM
MyLM(Y, X, robust = F, betasonly = F, typicalSE = T)
Returns a matrix of betas and standard errors
The Y variable
A matrix of X variables
Should robust standard errors be calculated? Assumes a double entered twin dataset with twins evenly spaced in the dataset.
Should only the betas be returned? Good for bootstrapping
Should the typical standard errors be included? Default is true. Can be true when robust is True.
X<-DFSimulated(100,100,.4,.4) Y<-RK(X[,1],X[,2],X[,3]) MyLM(Y[,1],Y[,c(2:3)],TRUE)
Run the code above in your browser using DataLab