run_sim: Run simulation study

Description Usage Arguments Value

View source: R/runsim.R

Description

Run simulation study

Usage

1
run_sim(nrep, type, scen_no, output_file_loc = "./")

Arguments

nrep

number of replications

type

simulation study type, either "biasvsvar" or "lowrel"

scen_no

scenarios numbers to be used

output_file_loc

directory where output of simulation will be saved

Value

a file named scen_no_* with the output will be saved in output_file_loc, which constitutes of the uncorrected effect, the corrected effect by means of mecor and the corrected effect by means of simex, the estimated R-squared of the outcome model and the seed no.


LindaNab/woorc documentation built on Dec. 17, 2021, 1:10 a.m.