Testing prior for two proportions
Constructs a discrete distribution for two proportions under a testing or uniform hypotheses
testing_prior(lo=.1, hi=.9, n_values=9, pequal=0.5, uniform=FALSE)
lo
: minimum value of each proportionhi
: maximum value of each proportionn_values
: number of values of each proportionpequal
: probability of the equality of the two proportionsuniform
: indicates if a uniform prior is desiredmatrix of probabilities where the rows and columns are labeled by the values of the proportions
Jim Albert
# testing prior where each proportion is # .1, .3, .5, .7, .9 Prob <- testing_prior(.1, .9, 5) # uniform prior over same proportion values Prob <- testing_prior(.1, .9, 5, uniform=TRUE)