Skip to contents

Compute residuals

Compute surrogate response values and surrogate-based residuals for fitted ordinal and general regression models.

surrogate()
Surrogate response
resids()
Surrogate residuals
calc_resid()
Calculate surrogate residuals for multinomial/discrete choice models

Diagnostics

Simulate p-values from a goodness-of-fit test.

gof() plot(<gof>)
Goodness-of-Fit Simulation

Plotting

Display residual diagnostics using lightweight base R graphics (via tinyplot).

Simulate data

Simulate ordinal datasets representing different model misspecifications.

sim_data()
Simulate Data for Diagnostic Plots