Learn R Programming

pomcheckr (version 0.1.1)

pomcheck: Graphical check for proportional odds assumption

Description

Implements the method described in https://stats.idre.ucla.edu/r/dae/ordinal-logistic-regression/ for checking if the proportional odds assumption holds for a cumulative logit model.

Usage

pomcheck(object, ...)

# S3 method for default pomcheck(object, x, data, ...)

# S3 method for formula pomcheck(formula, data, ...)

Arguments

object

character string for response

currently unused

x

vector of character string(s) for explanatory variable(s)

data

data frame containing the variables

formula

formula of the form y ~ x1 + x2 + ...

Value

an object of class 'pomcheck'

Methods (by class)

  • default: default

  • formula: supports formula specification

See Also

plot.pomcheck

Examples

Run this code
# NOT RUN {
pomcheck(Species ~ Sepal.Length, iris)
pomcheck(Species ~ Sepal.Length + Sepal.Width, iris)
pomcheck(object="Species", x="Sepal.Length", iris)
pomcheck(object="Species", x=c("Sepal.Length", "Sepal.Width"), iris)
# }

Run the code above in your browser using DataLab