Description Usage Arguments Value
View source: R/GenCohortMultiOutcome.R
Generates a cohort with multivariate bernoulli outcomes where each outcome has an associated "surrogate"
1 2 | GenCohortMultiOutcome(n, K, p, p_nonzero, beta0, betaZ.mat, betaX, probZ, probX,
corr_y = NULL)
|
n |
cohort size |
K |
number of multivariate Bernoulli outcomes |
p |
Number of covariates (besides surrogates) |
p_nonzero |
Number of nonzero covariates (besides surrogates) |
beta0 |
Length K vectors of intercepts; defines f(Y) |
betaZ.mat |
KxK matrix of coefficients of surrogate; defines f(Z,Y) |
betaX |
Length p vector of coefficient; defines f(X,Y) |
probZ |
Length K vector of probabilities; defines f(Z) |
probX |
Single number; defines f(X) |
corr_y |
Correlation between outcomes, defaults to NULL |
A list with the following components:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.