robust_lm: robust_lm

Description Usage Arguments Examples

View source: R/models.R

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)

Ottawa-EPRI/EPmisc documentation built on May 18, 2019, 10:14 a.m.