Description Usage Arguments Details Value Examples
This utility function is used by other functions to lookup coefficients that
have been estimated by fit.model. The estimates are found in the
polr class object fit. Baseline categories return a value of
zero.
1 2 | ## S3 method for class 'lookup'
coef(variable, value)
|
variable |
A column name from the original data frame. This will be the variable one of whose values you are looking up the coefficient for. |
value |
A specific value of the variable under consideration. This value
must be one of the values actually used in the data frame for
|
The function checks that the variable is in the fitted model, and that the value for that variable is one that has been included in the model.
A numeric value, zero for a baseline category or the estimated coefficient from the fitted logistic model. These estimates are logarithms of the cumulative logit (once you add the relevent cut).
1 | coef.lookup("gender","female")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.