Description Usage Arguments Value See Also
View source: R/aggregress_het.R
white_hccme_med
calculates the HCCME for a linear regression model,
to match the calculation for 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,
but with loops in the rows and columns of the covariance matrix, not in the sample size.
1 | white_hccme_med(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.