PropHM | R Documentation |
To compute the proportions of the subgroups assuming the subgroups
follow the same binomial distribution with parameter p
.
The approach on partial pooling by Bob Carpenter has been used –
"Hierarchical Partial Pooling for Repeated Binary Trials"
https://mc-stan.org/users/documentation/case-studies/pool-binary-trials.html
PropHM(x, n, kappa)
x |
Numeric vector of events. |
n |
Numberic vector of group sample sizes. |
kappa |
|
'data': data with estimates.
'alpha': parameter of the beta distribution.
'beta': parameter of the beta distribution.
out <- PropHM(x=c(5,10,2),n=c(20,50,30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.