Description Usage Arguments Value Author(s)
View source: R/01.GenerateData.R
Generate one data center with information of n patients. The parameters are given as four raw vectors. This function is intentionally designed to be a low level function working with raw numeric vector parameters for maximum flexibility. In actual simulation runs, this function should be called by GenerateDistResNet
, not directly.
1 | GenerateOneCenter(n, AssignCovariates, alphas, betas, survParams)
|
n |
study site-specific sample size |
AssignCovariates |
covariate generation functions that takes n and p as the only arguments. |
alphas |
parameter vector for treatment model including c(alpha0, alphaX) |
betas |
parameter vector for outcome model shared among binary and survival outcome models including |
survParams |
vector of two. The first element is the baseline hazard of events in the exponential event time outcome model ( |
data frame with id, covariates, treatment (A) related variables, binary outcome (Y) related variables, and survival outcome (time, event) related variables.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.