Proportional_odds_assumption: Checking proportional odds assumption

View source: R/Proportional_odds_assumption.R

Proportional_odds_assumptionR Documentation

Checking proportional odds assumption

Description

This is the function to check the proportional odds assumption for the score test.

Usage

Proportional_odds_assumption(p1, p2)

Arguments

p1

A vector containing the probabilities of the outcome falling into each level of the control arm.

p2

A vector containging the probabilities of the outcome falling into each level of the control arm.

Value

Indicates whether the proportional odds assumption holds. If the assumption holds, the function returns the log-odds ratio from the score test. If the assumption does not hold, the function returns NA.


OptOTrials documentation built on Sept. 9, 2025, 5:46 p.m.