robust_lm: robust_lm

Description Usage Arguments Examples

Description

Estimates an lm model but uses robust standard errors by default. Note that for functions for which a robust_lm method is not defined (which is, in effect all of them with the exception of broom's tidy), the fallback class is lm, which will yield standard (non-robust) standard errors.

Usage

1

Arguments

...

Arguments to pass to lm.

Examples

1
2
3
data(iris)
iris$setosa <- ifelse(iris$Species == 'setosa', 1, 0)
lm_model <- robust_lm(setosa ~ Sepal.Length + Sepal.Width, data = iris)

dpavlic/EPmisc documentation built on May 15, 2019, 1:45 p.m.