GenCohortMultiOutcome: GenCohortMultiOutcome

Description Usage Arguments Value

View source: R/GenCohortMultiOutcome.R

Description

Generates a cohort with multivariate bernoulli outcomes where each outcome has an associated "surrogate"

Usage

1
2
GenCohortMultiOutcome(n, K, p, p_nonzero, beta0, betaZ.mat, betaX, probZ, probX,
  corr_y = NULL)

Arguments

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

Value

A list with the following components:


wlktan/surrogateSampling documentation built on May 23, 2019, 3:07 p.m.