View source: R/beta_inf_test.R
beta_hausman | R Documentation |
Calculates a Hausman test on the difference between robust and full sample estimates
beta_hausman(robust2sls_object, iteration, subset = NULL, fp = FALSE)
robust2sls_object |
An object of class |
iteration |
An integer > 0 specifying the iteration step for which parameters to calculate corrected standard errors. |
subset |
A vector of numeric indices or strings indicating which
coefficients to include in the Hausman test. |
fp |
A logical value whether the fixed point asymptotic variance (TRUE) or the exact iteration asymptotic variance should be used (FALSE). |
Argument fp
determines whether the fixed point asymptotic variance
should be used. This argument is only respected if the specified
iteration
is one of the iterations after the algorithm converged.
beta_hausman
returns a matrix with the value of the Hausman
test statistic and its corresponding p-value. The attribute
"type of avar"
records which asymptotic variance has been used (the
specific iteration or the fixed point). The attribute "coefficients"
stores the names of the coefficients that were included in the Hausman test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.