MyLM: MyLM

View source: R/MyLM.R

MyLMR Documentation

MyLM

Description

MyLM

Usage

MyLM(Y, X, robust = F, betasonly = F, typicalSE = T)

Arguments

Y

The Y variable

X

A matrix of X variables

robust

Should robust standard errors be calculated? Assumes a double entered twin dataset with twins evenly spaced in the dataset.

betasonly

Should only the betas be returned? Good for bootstrapping

typicalSE

Should the typical standard errors be included? Default is true. Can be true when robust is True.

Value

Returns a matrix of betas and standard errors

Examples

X<-DFSimulated(100,100,.4,.4)
Y<-RK(X[,1],X[,2],X[,3])
MyLM(Y[,1],Y[,c(2:3)],TRUE)

Omisc documentation built on Aug. 9, 2022, 5:09 p.m.

Related to MyLM in Omisc...