View source: R/sim_helper_functions.R
run_sim_draw_general | R Documentation |
Draw Missed Visits Using the generalized algorithm
run_sim_draw_general(sim_data, sim_ctrl)
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. |
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.