get_prob | R Documentation |
Compute joint probabilities of P(W = j, Y = k) for j, k = 0, 1.
get_prob(theta, pi0, alpha, beta, alpha0)
theta |
A |
pi0 |
A |
alpha |
A |
beta |
A |
alpha0 |
A |
A vector
containing tau1, tau2, tau3 and tau4.
Stephane Guerrier
prob1 = get_prob(theta = 0.02, pi0 = 0.01, alpha = 0, beta = 0, alpha0 = 0)
prob1
sum(prob1)
prob2 = get_prob(theta = 0.02, pi0 = 0.01, alpha = 0.001, beta = 0, alpha0 = 0.001)
prob2
sum(prob2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.