Learn R Programming

AutoScore (version 1.1.0)

estimate_p_mat: Internal function: generate probability matrix for ordinal outcomes given thresholds, linear predictor and link function

Description

Internal function: generate probability matrix for ordinal outcomes given thresholds, linear predictor and link function

Usage

estimate_p_mat(theta, z, link)

Arguments

theta

numeric vector of thresholds

z

numeric vector of linear predictor

link

The link function used to model ordinal outcomes. Default is "logit" for proportional odds model. Other options are "cloglog" (proportional hazards model) and "probit".