hccme {skedastic} | R Documentation |
Heteroskedasticity-Consistent Covariance Matrix Estimators for Linear Regression Models
Description
Computes an estimate of the covariance matrix
(assumed to be diagonal) of the random error vector of a linear
regression model, using a specified method
Usage
hccme(
mainlm,
hcnum = c("3", "0", "1", "2", "4", "5", "6", "7", "4m", "5m", "const"),
sandwich = FALSE,
as_matrix = TRUE
)
Arguments
mainlm |
Either an object of |
hcnum |
A character corresponding to a subscript in the name of an
HCCME according to the usual nomenclature
|
sandwich |
A logical, defaulting to
should be returned instead of |
as_matrix |
A logical, defaulting to |
Value
A numeric matrix (if as_matrix
is TRUE
) or else a
numeric vector
References
Aftab N, Chand S (2016).
“A New Heteroskedastic Consistent Covariance Matrix Estimator Using Deviance Measure.”
Pakistan Journal of Statistics and Operations Research, 12(2), 235–244.
Aftab N, Chand S (2018).
“A Simulation-Based Evidence on the Improved Performance of a New Modified Leverage Adjusted Heteroskedastic Consistent Covariance Matrix Estimator in the Linear Regression Model.”
Kuwait Journal of Science, 45(3), 29–38.
Cribari-Neto F (2004).
“Asymptotic Inference under Heteroskedasticity of Unknown Form.”
Computational Statistics & Data Analysis, 45, 215–233.
Cribari-Neto F, Souza TC, Vasconcellos KLP (2007).
“Inference under Heteroskedasticity and Leveraged Data.”
Communications in Statistics - Theory and Methods, 36(10), 1877–1888.
Cribari-Neto F, da Silva WB (2011).
“A New Heteroskedasticity-Consistent Covariance Matrix Estimator for the Linear Regression Model.”
Advances in Statistical Analysis, 95(2), 129–146.
Li S, Zhang N, Zhang X, Wang G (2017).
“A New Heteroskedasticity-Consistent Covariance Matrix Estimator and Inference under Heteroskedasticity.”
Journal of Statistical Computation and Simulation, 87(1), 198–210.
MacKinnon JG, White H (1985).
“Some Heteroskedasticity-Consistent Covariance Matrix Estimators with Improved Finite Sample Properties.”
Journal of Econometrics, 29(3), 305–325.
White H (1980).
“A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity.”
Econometrica, 48(4), 817–838.
See Also
Examples
mtcars_lm <- lm(mpg ~ wt + qsec + am, data = mtcars)
Omega_hat <- hccme(mtcars_lm, hcnum = "4")
Cov_beta_hat <- hccme(mtcars_lm, hcnum = "4", sandwich = TRUE)