tb_simu_cov_es: Simulate covariates

View source: R/tb_simu_cov.R

tb_simu_cov_esR Documentation

Simulate covariates

Description

Simulate covariates based on existing real studies

Usage

tb_simu_cov_es(
  dta_es,
  v_covs,
  n = 500,
  label_arm = "ARM",
  label_id = "SUBJID",
  label_randt = "RANDT",
  rnd_ratio_trt = 1,
  replace = TRUE,
  rand_corr = 0.5,
  ...,
  seed = NULL
)

Arguments

dta_es

Existing study data

v_covs

Vector of covariates to be sampled

n

Sample size for two arms

label_arm

Column name for Arm in the result

label_id

Column name for patient id in the existing data

rnd_ratio_trt

Randomization ratio vs. control (=1)

replace

Sample with or without replacement


olssol/tburden documentation built on April 27, 2023, 12:14 p.m.