clustered.se: This function allows for calculation of clustered standard...

Description Usage Arguments Value

View source: R/clustered.se.R

Description

This function allows for calculation of clustered standard errors after running a standard linear regression with lm.

Usage

1
clustered.se(model_result, data, cluster, level = 0.95, Tvar = "treatment")

Arguments

model_result

Model object returned by lm

data

The data set used in the original regression

cluster

The name of the clustering variable

level

The confidence level at which the p-value should be calculated

Tvar

The name of the treatment variable from the original regression

Value

A list containing a variance-covariance matrix, clustered standard errors and p-values for each coefficient in the original model, and lower and upper bounds for confidence intervals at each specified confidence level.


mathematica-mpr/edtechrce documentation built on Nov. 10, 2019, 9:19 a.m.