Description Usage Arguments Details Value Examples
View source: R/methods-for-data-generation.R
Method for generating a sampling design for data generation following a binomial-Gaussian model.
1 | designB(n, h_bounds, a_bounds, s_bounds, r, x)
|
n |
resolution of the heterogeneity. n is the number of of different heterogeneity parameters in the design. |
h_bounds |
bounds of the heterogeneity. |
a_bounds |
bounds of the balancing factor of group assignments. |
s_bounds |
bounds of the study sizes. |
r |
fixed risk in the control. |
x |
design matrix. |
Generates a sampling design for the heterogeneity 'h', balancing factors 'a1', ..., 'ak' of group assignments, and study sizes 's1', ..., 'sk'. This design can be used for testing methods for inference for the random effects meta regression model since the logarithm of relative risks of each study is approximately Gaussian distributed. One may use methods that adjust for uncertainty in the heteroscedasticity estimates by additionally considering the size of the respected studies.
Points in the design are selected via a maxi-min hypercube sampling using the 'lhs' package in a predefined parameter cube.
Function returns a data frame. Each line of this data frame can be an input to the function 'rB' which is used to sample data from such a design.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.