GenerateOneCenterTable: Generate one data center and its table

Description Usage Arguments Value Author(s)

View source: R/01.GenerateData.R

Description

Generate one data center with information of n patients, and then generate a baseline characteristics table using the tableone package.

Usage

1
GenerateOneCenterTable(n, AssignCovariates, alphas, betas, survParams, ...)

Arguments

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 c(beta0, betaX, betaA, betaXA).

survParams

vector of two. The first element is the baseline hazard of events in the exponential event time outcome model (lambda). The second element is the baseline hazard of censoring in the exponential censoring time model (lambda_c).

...

parameters for tableone::CreateTableOne function

Value

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.

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.