README.md

RegUtils

This R package adds regression models common to Stata users:

Examples:

alm

#Using Chile dataframe from car package, to absorb categorical region variable:
data(Chile, package="car")
fit1 = alm(formula = income ~ education + age + statusquo + region,
absorb="region", data = Chile)
summary(fit1)

boxcox_r

fit1 = boxcox.r(Volume ~ Height + Girth, data = trees)
summary(fit1)

eivlm

#Assuming speed information was measured with a reliability of 0.85
fit1 = eivlm(dist~speed, data=cars, rel = c(0.85))
summary(fit1)

etreg

data(Mroz, package="car")
Mroz$wcb = as.integer(Mroz$wc)
fit1 = etreg(inc~age+wcb+k618+k5+lfp,wcb~hc+age,data=Mroz)
summary(fit1, robust=TRUE)

ivtobit



Paulms/RegUtils documentation built on May 8, 2019, 1:27 a.m.