Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesonnet committed Mar 20, 2018
1 parent 7795080 commit f9e2cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/estimatr_lm_robust.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#' \code{\link[texreg]{extract}} function and the \pkg{texreg} package.
#'
#' If users specify a multivariate linear regression model (multiple outcomes),
#' then some of the below components will be of higher dimension to accomodate
#' then some of the below components will be of higher dimension to accommodate
#' the additional models.
#'
#' An object of class \code{"lm_robust"} is a list containing at least the
Expand Down
2 changes: 1 addition & 1 deletion vignettes/stata-wls-hat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Stata's standard errors are somewhat different. The only documentation of Stata'

Just because Stata is not documenting their HC2 and HC3 estimator does not mean they're wrong. Also the differences tend to be minor. In fact, it is unclear which we should prefer given that there is not a strong literature supporting one or the other. However, there are several arguments to be made for $\matbf{H}_{R}$.

1. It's the estimator you get when you weight your data by the square root of the weights ($\mathbf{X} \rightarrow \widetilde{\mathbf{X}}$ and $\mathbf{y} \rightarrow \widetilde{\mathbf{y}}$) and fit regular ordinary least squares. If one considers the weighted model as simply a rescaled version of the unweighted moded, then users should prefer $\mathbf{H}_{R}$.
1. It's the estimator you get when you weight your data by the square root of the weights ($\mathbf{X} \rightarrow \widetilde{\mathbf{X}}$ and $\mathbf{y} \rightarrow \widetilde{\mathbf{y}}$) and fit regular ordinary least squares. If one considers the weighted model as simply a rescaled version of the unweighted model, then users should prefer $\mathbf{H}_{R}$.
2. The diagonal of $\mathbf{H}_{R}$ are the weighted leverages [@livalliant2009], while $\mathbf{H}_{Stata}$ would need to be weighted again for the diagonal to recover the weighted leverage.

## References

0 comments on commit f9e2cc9

Please sign in to comment.