run_sim_draw_general: Draw Missed Visits Using the generalized algorithm

View source: R/sim_helper_functions.R

run_sim_draw_generalR Documentation

Draw Missed Visits Using the generalized algorithm

Description

Draw Missed Visits Using the generalized algorithm

Usage

run_sim_draw_general(sim_data, sim_ctrl)

Arguments

sim_data

a simulation dataset containing time_map, miss_bins, change_point and number of patients

sim_ctrl

the control function specifying the simulation parameters. This simulation uses as a parameter a weighting function, weight_function. The default weight_function is the additive function simple_weight_sum() which simply adds together the number of distinct visits, number of distinct SSDs and the number of times previously selected.

Examples

# Usage of run_sim_draw_simple_cor() while specifying weight_function=simple_weight_sum
run_sim_draw_general(sim_data = example_sim_data,
                     sim_ctrl = sim_ctrl(weight_function=simple_weight_sum))


aarmiller/delaySim documentation built on Jan. 2, 2023, 11:23 p.m.