haustest | R Documentation |
Hausman test
haustest(x, y, omit = NULL)
x |
the first model, |
y |
the second model |
omit |
a character containing the effects that are removed from the test |
a list with class 'htest'
containing the following components:
data.mane: a character string describing the fitted model
statistic: the value of the test statistic
parameter: degrees of freedom
p.value: the p.value of the test
method: a character indicating what type of test is performed
alternative: a character indicating the alternative hypothesis
Yves Croissant
HAUS:78tobit1
charitable <- dplyr::mutate(charitable, logdon = log(donation) - log(25)) char_form <- logdon ~ log(donparents) + log(income) + education + religion + married + south ml <- tobit1(char_form, data = charitable) scls <- update(ml, method = "trimmed") haustest(scls, ml, omit = "(Intercept)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.