cluster: Setting cluster robust standard error to be reported in...

Description Usage Arguments Examples

Description

Summary command will use the cluster variable attached by this command to the regression object to calculate cluster robust standard error

Usage

1
cluster(reg, clustervar)

Arguments

reg

regression objects, for now only works for lm, glm

clustervar

the clustering variable in the data frame that is used for regression. The name of data frame need not to be mentioned since it will be read from the object's call.

Examples

1
2
lmo = lm(mpg ~ carb + cyl, mtcars)
texreg::screenreg(list(lmo, cluster(lmo, am)))

msaidf/robusta documentation built on May 23, 2019, 7:50 a.m.