RobustRegression: Runs robust regression

Description Usage Arguments Value Examples

View source: R/RobustRegression.R

Description

RobustRegression runs a robust regression with heteroskedastic robust standard errors

Usage

1
RobustRegression(model, dat, cluster_var = "None")

Arguments

model

a linear regression object of the form lm(a ~ b)

dat

the data frame object used in the linear regression model

cluster_var

a character indicating variables to cluster errors by

Value

A list object with components: model - the regression object, TidyModel, a cleaned up version of the model, GlanceModel - tidy summary of the model, AugModel - the original data with some augmented things

Examples

1
2
3
data('iris')
regression <-  RobustRegression(model = lm(Sepal.Length ~ Sepal.Width + Petal.Length + Species, data = iris),
dat = iris, cluster_var = 'Species')

DanOvando/RobustRegression documentation built on May 6, 2019, 1:22 p.m.