Calculate the difference between the p-value and a p-value threshold for the two types of observation model
find_odds_two_types.RdA helper function for sens_obs_two_types() see find_p_two_types() for details.
Arguments
- omega
Candidate odds ratio being evaluated by the root finder.
- obs_support
An integer representing the number of observations in favor of the working hypothesis. Must be less than or equal to
total_obs.- total_obs
An integer representing the total number of observations made. It can be greater than or equal to the
obs_support.- rival_obs
Optional. An integer representing the number of observations in the urn that do not support the working theory.
- weights
Double vector. Default is equal weight for each observation when weights=NULL is
rep(1,obs_support). To indicate that one observation should have twice the weight of any other one might userep(c(2,1),c(1,obs_support-1))- p_threshold
A number between 0 and 1 indicating the critical value of the test.