X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/acb119418aef75dfa1e882f975ae0638e7736a07..refs/heads/master:/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")