Description Usage Arguments Details Value Examples
View source: R/methods-for-data-generation.R
Random draws of log risk ratios from a hierarchical binomial Gaussian model.
1 | rB(n, h, s, a, r, x, b)
|
n |
number of draws. |
h |
heterogeneity. |
s |
study sizes. |
a |
balance of group assignments. |
r |
fixed risk in the treatment group. |
x |
design matrix. |
b |
regression coefficients. |
It is always assumed that at least one response in a study has happend, i.e., a response of 0 in a treatment or control group is rounded up to 1. Note that this may lead to an overestimation of small risks. If possible, make sure your sample sizes are large enough to compensate for this effect.
A (2k,n) matrix. Each column is an independent draw.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.