Sandwich | R Documentation |
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.
Sandwich(Stage.1.Model, Type="HC0")
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., |
Sandwich |
The fitted Stage 1 model with sandwich estimators. |
Alpha |
The significance level that is used for inference. Default |
Wim Van der Elst
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.
Stage.1
data(GCSE)
Model.1.GCSE <- Stage.1(Dataset = GCSE, Model = Science.Exam~Gender)
Sandwich(Stage.1.Model = Model.1.GCSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.