test_propodds: Proportional odds Testing

View source: R/test_propodds.R

test_propoddsR Documentation

Proportional odds Testing

Description

Tests for proportional odds assumption in data. You can use as many predictors as you want, but you cannot use random effects (only fixed effects allowed) for the time being. A message will be displayed whether if the proportional odds assumption is likely met or not. A dataframe with estimates and confidence intervals will be returned if you want to plot th rsults to double check.

Usage

test_propodds(
  ord_data,
  model_formula,
  clm_obj = NULL,
  .link = "logit",
  control = list()
)

Arguments

ord_data

Data frame with your data

model_formula

The model formula to provide to a glm call

clm_obj

Optional CLM or CLMM object to compare estimates to

.link

Link function, defaults to logit for proportional odds model, message is sent if this differs from clm_obj's link function

control

Control to use for mixed models, defaults to

Value

A data frame with estimates and confidence intervals for each scale response


tsostarics/sostools documentation built on Nov. 22, 2022, 7:26 p.m.