coef.lookup: Coefficient lookup.

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
2
## S3 method for class 'lookup'
coef(variable, value)

Arguments

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 fit.model.

Details

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.

Value

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).

Examples

1
coef.lookup("gender","female")

sumitrahman/perfman documentation built on May 30, 2019, 8:37 p.m.