testing_prior.RdConstructs 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 proportion |
|---|---|
| hi | maximum value of each proportion |
| n_values | number of values of each proportion |
| pequal | probability of the equality of the two proportions |
| uniform | indicates if a uniform prior is desired |
matrix of probabilities where the rows and columns are labeled by the values of the proportions
# 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)