Description Usage Arguments Value Examples
regress y on x with robust standard errors, clustered standard errors, HAC standard errors, panel fixed effects, etc.
1 |
y |
name of the dependent variable |
x |
names of the independent variables in "x1 x2 x3" format. To include a variable as a categorical variable (when you would use "i.state" to get state dummies in Stata), include it as "factor(state)". |
subset |
conditions to subset the data |
effect |
either "twoways", "individual", or "time" for fixed effects. Dataset must already have been |
robust |
whether to use robust standard errors |
hac |
which variable to order by to compute heteroskedastic and auto correlation standard errors (if unspecified, do not do HAC correction) |
cluster |
a variable list giving the names of the variables to cluster by in producing clustered standard errors |
rtype |
gives the type of heteroskedasticity correction to make. By default, it is "1" to implement HC1 which is the same as Stata's small sample corrected standard errors. rtype can be any integer from 0 to 3 with each value corresponding to a different heteroskedastic correction (HCx). See documention for |
b coefficient vector
V covariance matrix of coefficients
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.