Description Usage Arguments Value Author(s)
View source: R/01.GenerateData.R
Generate one data center with information of n patients, and then generate a baseline characteristics table using the tableone
package.
1 | GenerateOneCenterTable(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 ( |
... |
parameters for tableone::CreateTableOne function |
ParamsTableOne object containing parameter values and TableOne object defined in tableone
. The true one-year survival variable is added to the variables already in the generated dataset.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.