# \donttest{
# Estimate a heteroskedastic probit and logit model
data("Health")
het.probit <- hetprob(working ~ factor(female) + factor(year) + educ + age + I(age^2) |
factor(female) + age + I(age^2),
data = Health,
link = "probit")
summary(het.probit)
het.logit <- hetprob(working ~ factor(female) + factor(year) + educ + age + I(age^2) |
factor(female) + age + I(age^2),
data = Health,
link = "logit")
summary(het.logit)
# }
Run the code above in your browser using DataLab