corrected_errors_lm: Computes a linear regression with standard errors corrected...

Description Usage Arguments Value Examples

View source: R/errors_lm.R

Description

Computes a linear regression with standard errors corrected for heteroskedasticity, using the

Usage

1
corrected_errors_lm(df, model, cluster_predictor, type = "HC")

Arguments

df

A dataframe R will pull the variables from to run the regression

model

A model object of class "lm" or a valid formula.

cluster_predictor

An (unquoted) variable to cluster the standard errors by.

type

An optional term for specifiying the estimator method, see vcovHC for options

Value

A data frame of model estimates.

Examples

1
corrected_errors_lm(mtcars, mpg ~ hp + wt, cyl)

jameshasbany/fastlm documentation built on July 26, 2020, 9:40 a.m.