The Sandwich() function can be used to obtain heteroscedasticity-consistent standard errors of the regression parameters of a fitted Stage 1 model. These are used to account for heteroscedasticity.
Usage
Sandwich(Stage.1.Model, Type="HC0")
Value
Sandwich
The fitted Stage 1 model with sandwich estimators.
Alpha
The significance level that is used for inference. Default Alpha=0.05.
Arguments
Stage.1.Model
The fitted stage 1 model for which heteroscedasticity-consistent standard errors (sandwich estimators) for the standard errors of the regression parameters has to be provided.
Type
The type of the heteroscedasticity-consistent estimator that is used. By default, White's (White, 1980) estimator is used (i.e., Type="HC0") but other estimators are available. For details, see the vcovHC function of the sandwich package.
Author
Wim Van der Elst
References
Van der Elst, W. (2024). Regression-based normative data for psychological assessment: A hands-on approach using R. Springer Nature.
White, H. (1980). A heteroscedasticity-consistent covariance matrix and a direct test for heteroscedasticity. Econometrica, 48, 817-838.