rweSimuFromTrial: Simulate data from an existing dataset

Description Usage Arguments

View source: R/rwe_simu.R

Description

Simulate data from an existing dataset

Usage

1
2
3
4
rweSimuFromTrial(nPat, trial.data, group = "A", outcome = "Y",
  with.replacement = TRUE, seed = NULL, permute = TRUE,
  f.subset = NULL, permute.trteffect = 0, permute.interaction = 0,
  simu.group = group, simu.outcome = outcome)

Arguments

nPat

number of patients

trial.data

existing clinical trial data

group

column referring to arm in the existing dataset

outcome

column referring to outcome in the existing dataset

with.replacement

sample with or without replacement from the existing dataset


olssol/rwetools documentation built on Feb. 4, 2020, 2:51 p.m.