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
 5
 6
 7
 8
 9
10
11
12
13
14
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 April 18, 2021, 11:42 a.m.