simPredpolr: Calculate Predictions for Proportional Odds Logistic...

simPredpolrR Documentation

Calculate Predictions for Proportional Odds Logistic Regression

Description

Calculates predicted probabilities from models of class polr from a model object and a vector of coefficient values. This is an auxiliary function used in pre if sim=TRUE.

Usage

simPredpolr(object, coefs, n.coef)

Arguments

object

An object of class polr.

coefs

A vector of coefficients where elements 1 to n.coef give model coefficients and elements n.coef+1 to k have intercepts.

n.coef

Number of coefficients (minus intercepts) for the polr model.

Value

An n x m-category matrix of predicted probabilities

Author(s)

Dave Armstrong


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.