Description Usage Arguments Value Author(s) Examples
View source: R/testing_prior.R
Constructs a discrete distribution for two proportions under a testing or uniform hypotheses
1 2 | 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
Jim Albert
1 2 3 4 5 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.