pd_ss_patients: Simulate patients for conduction simulation studies

View source: R/pfDesign_simustudy.R

pd_ss_patientsR Documentation

Simulate patients for conduction simulation studies

Description

Simulate patients for conduction simulation studies

Usage

pd_ss_patients(simu_setting, h1 = FALSE)

Arguments

simu_setting

A list of simulation parameters for the following functions pdSimuPts, pdGetInt

h1

Simulate patients under null (h1 = FALSE) or alternative hypothesis (h1 = TRUE)

Examples

    simu_setting <- list(n_pat      = 100,
                         mu_0       = -1.5,
                         mu_0_trt   = -0.4,
                         fmla_t     = as.formula("~ -1 + time"),
                         coeff_t    = 0,
                         muCov      = rep(0,   5)
                         sdCov      = rep(0.5, 5)
                         corCov     = 0.1,
                         coeff_x    = rep(0.5, 5)
                         t_end      = 3,
                         t_start    = 0,
                         t_hist     = 2,
                         intervals  = 2,
                         seed       = 1000)

   simu_patients(simu_setting)


olssol/pfDesign documentation built on March 27, 2022, 4:30 p.m.