Description Usage Arguments Value See Also
View source: R/aggregress_het.R
white_hccme_slow
is a helper function to calculate the HCCME,
to test the calculation for comparison with un-aggregated data, i.e. data
with weights either NULL
or equal to 1.
It calculates the covariance matrix from first principles, i.e. with loops.
1 | white_hccme_slow(lm_in)
|
lm_in |
is an object of class " |
A list containing two elements. The first is the HCCME covariance
matrix. the second is a data frame of the form of coef(summary(lm_in))
,
except with standard errors and the remaining statistics adjusted
for heteroskedasticity.
white_hccme
, which uses vcovHC
function in the
sandwich
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.