Learn R Programming

repolr (version 2.0)

polycuts: Provide Estimates of Cut-point Parameters for grepolr

Description

After fitting model using grepolr, function polycuts gives estimates of K-1 cut-point parameters, based on polynomial model from fit of grepolr, that provide useful way of comparing alternate polynomial models.

Usage

polycuts(x)

Arguments

x
is a fitted model using grepolr

Value

  • A vector of K-1 cut-point parameters.

Examples

Run this code
## linear polynomial
data(QoL)
space <- 1:10
mod1 <- grepolr(QoL~factor(Time)+factor(Treat),subjects="Patient",
         data=QoL, categories=10, times=c(1,2,3),poly=1,space=space)
## cubic polynomial
mod3 <- grepolr(QoL~factor(Time)+factor(Treat),subjects="Patient",
         data=QoL, categories=10, times=c(1,2,3),poly=3,space=space)
polycuts(mod1)
polycuts(mod3)

Run the code above in your browser using DataLab