polr_std | R Documentation |
This runs MASS::polr()
after standardising all continuous predictors, while leaving
factors intact. Note that the Hessian (the observed information matrix)
is always returned, so that the Hess
argument cannot be used.
polr_std(formula, data = NULL, weights = NULL, ...)
formula |
a formula expression as for regression models, of the form
|
data |
an optional data frame, list or environment in which to interpret
the variables occurring in |
weights |
optional case weights in fitting. Default to 1. |
... |
Arguments passed on to
|
In the model call, the weights variable will always be called .weights
. This might
pose a problem when you update the model later on, for the moment the only workaround
is to rename the weights variable accordingly (or to fix it and contribute a PR on
Github).
See (Fox, 2015) for an argument why dummy variables should never be standardised.
polr_std(poverty ~ religion + age + gender, WVS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.