X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/bb6f5e4731c603b336afb1a900bc9083d1b175bf..214551f74cc94ef1fa2f24aa317265c25bb03757:/simulations/03_depvar.R diff --git a/simulations/03_depvar.R b/simulations/03_depvar.R index 461c01a..ec1e231 100644 --- a/simulations/03_depvar.R +++ b/simulations/03_depvar.R @@ -73,8 +73,8 @@ parser <- add_argument(parser, "--y_explained_variance", help='what proportion o parser <- add_argument(parser, "--prediction_accuracy", help='how accurate is the predictive model?', default=0.72) ## parser <- add_argument(parser, "--x_bias_y1", help='how is the classifier biased when y = 1?', default=-0.75) ## parser <- add_argument(parser, "--x_bias_y0", help='how is the classifier biased when y = 0 ?', default=0.75) -parser <- add_argument(parser, "--Bxy", help='coefficient of x on y', default=0.01) -parser <- add_argument(parser, "--Bzy", help='coeffficient of z on y', default=-0.01) +parser <- add_argument(parser, "--Bxy", help='coefficient of x on y', default=0.3) +parser <- add_argument(parser, "--Bzy", help='coeffficient of z on y', default=-0.3) parser <- add_argument(parser, "--Bzx", help='coeffficient of z on x', default=-0.5) parser <- add_argument(parser, "--B0", help='Base rate of y', default=0.5) parser <- add_argument(parser, "--outcome_formula", help='formula for the outcome variable', default="y~x+z")