All functions

calc_power()

Power calculation to detect overall treatment effect and interaction effect

generate_X_dist()

Generate X from pre-specified distribution.

generate_X_syn()

Generate X from data "syn"

generate_scen_data()

Generate simulation data from pre-specified scenarios

generate_trt()

Generate binary treatment variable

generate_y()

Generate outcome variable y and merge with predictor data matrix X.

get_b()

Calculate b parameter to achieve a given power to detect an overall effect and the interaction effect

get_b0()

Calculate b0 parameter to achieve a given power to detect an overall effect and the interaction effect

scen_param

Pre-specified simulation scenarios from XYZ