Write Code function

write_code(simulation, endpoint, input_list)

Arguments

simulation

A purpose, either "Simulation" or "Analysis"

endpoint

An endpoint type, one of "Binary", "Normal" or "Survival"

input_list

input from UI