Skip to contents

A helper function for sens_obs_two_types() see find_p_multi_mv() for details.

Usage

find_odds_multi(omega, obs_support, rival_obs, weights, p_threshold)

Arguments

omega

Candidate odds ratio being evaluated by the root finder.

obs_support

A vector of integers representing the number of observations made in favor of the working hypothesis (anti-rival). Each element corresponds to evidence against a specific rival.

rival_obs

Optional. A vector of integers representing the number of observations actually made that support each rival. Must be the same length as obs_support. If NULL, assumes zero pro-rival observations.

weights

Not used yet.

p_threshold

A number between 0 and 1 indicating the critical value of the test.