parsim_treatment_by_subgroup: Simulate treatment by subgroups - parallelized Given the...

Description Usage Arguments

View source: R/parallelized.R

Description

Simulate treatment by subgroups - parallelized Given the proportions of treatments by subgroups, simulate treatment

Usage

1
2
parsim_treatment_by_subgroup(treat_chars, stage_subgroup_rows, thisprop,
  pop_size, nsim, ncores = 4)

Arguments

treat_chars

Data frame indicating stage-subgroup #s in the SSno variable and stage-subgroup-treatment #s in txSSno, and prop_* columns where * is the trial name.

stage_subgroup_rows

Matrix indicating, for each person-sim, which stage-subgroup they are in (using the SSid from treat_chars)

thisprop

Character indicating the prop_* column name from which to take treatment proportions

pop_size

Population size

nsim

Number of sims

ncores

Number of cores


cancerpolicy/bcimodel documentation built on June 15, 2018, 12:31 a.m.