scoretest | R Documentation |
Score test, also knowned as Lagrange multiplier tests
scoretest(object, ...)
## Default S3 method:
scoretest(object, ...)
## S3 method for class 'micsr'
scoretest(object, ..., vcov = NULL)
object |
the first model, |
... |
for the |
vcov |
an optional covariance matrix |
an object of class "htest"
.
Yves Croissant
mode_choice <- transform(mode_choice, cost = cost * 8.42)
mode_choice <- transform(mode_choice, gcost = (ivtime + ovtime) * 8 + cost)
pbt_unconst <- binomreg(mode ~ cost + ivtime + ovtime, data = mode_choice, link = "probit")
pbt_const <- binomreg(mode ~ gcost, data = mode_choice, link = "logit")
scoretest(pbt_const , . ~ . + ivtime + ovtime)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.