partreatments_by_policy: Use sim_treatment_by_subgroup to simulate treatments,...

Description Usage Arguments

View source: R/parallelized.R

Description

Simulate treatments according to specified policy rules

Usage

1
2
partreatments_by_policy(policies, treat_chars, stagegroups, map, pop_size, nsim,
  ncores = 4, method = "inner")

Arguments

policies

A "scenarios" data frame containing an 'id' for the policies and a 'pairnum' column indicating either NA or the paired policy, for

method

Either 'outer' or 'inner'. If outer, will parallelize the outer lapply. If inner, will parallelize repeated calls to sim_multinom


cancerpolicy/bcimodel documentation built on Feb. 13, 2018, 2:06 p.m.