Description Usage Arguments Value Author(s)
.. content for details ..
1 2 | generate_p_norm_count_bin_data_count(n, p, rho, lambda, prev, alphas, sigma,
beta0, betaA, betaX, betaXA)
|
n |
Sample size |
p |
number of covariates. Must be 3 or more. |
rho |
correlation coefficient |
lambda |
mean parameter for X2 (count variable) |
prev |
prevalence vector for X3 through Xp (binary variables) |
alphas |
True coefficients for the first and second treatment linear predictors. This vector should contain the intercept. alphas = c(alpha01, alphaXm1, alpha02, alphaXm2) |
sigma |
scaling of all covariate effects. A higher value means stronger covariate effects, i.e., less clinical equipoise. |
beta0 |
Outcome model intercept coefficient |
betaA |
Outcome model coefficient for I(A_i = 1) and I(A_i = 2) |
betaX |
Outcome model coefficient vector for covariates X_i |
betaXA |
Outcome model interaction coefficients for covariates. betaXA = c(betaXA1, betaXA2) |
a complete simulated data_frame
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.