summary.lm: New summary.lm function

Description Usage Arguments Details

Description

Adding the options robust and cluster to the summary.lm function. Loading the package will mask the summary.lm function.

Usage

1
2
3
## S3 method for class 'lm'
summary(object, correlation = FALSE, symbolic.cor = FALSE,
  robust = FALSE, cluster = NULL, type = "HC1", ...)

Arguments

object

an object of class "lm", usually, a result of a call to lm.

correlation

logical; if TRUE, the correlation matrix of the estimated parameters is returned and printed.

symbolic.cor

logical. If TRUE, print the correlations in a symbolic form (see symnum) rather than as numbers.

robust

logical; if TRUE, heteroskedasticity robust standard errors are used in the hypothesis tests

cluster

integer vector indicating cluster membership

type

type of robust standard errors to calculate

...

further options to pass to summary

Details

detailed descriptions regarding the difference between the standard errors can be found by ?summary_robust. The summary.lm function should work as usuall when calling without specifying any of the options robust or cluster. If called with these options, on the other hand, a robustSE class object will be returned.


baruuum/jars documentation built on Nov. 3, 2019, 2:06 p.m.