X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/5c931a7198452ff3ce0ace5b1f68046bfb33d352..b8d2048cc5338fbd872b55029c3e5d01c739a397:/simulations/04_depvar_differential.R diff --git a/simulations/04_depvar_differential.R b/simulations/04_depvar_differential.R index df0e825..b367080 100644 --- a/simulations/04_depvar_differential.R +++ b/simulations/04_depvar_differential.R @@ -76,12 +76,13 @@ parser <- add_argument(parser, "--prediction_accuracy", help='how accurate is th parser <- add_argument(parser, "--z_bias", help='how is the classifier biased?', default=1.5) parser <- add_argument(parser, "--Bxy", help='coefficient of x on y', default=0.1) parser <- add_argument(parser, "--Bzy", help='coeffficient of z on y', default=-0.1) +parser <- add_argument(parser, "--B0", help='coeffficient of z on y', default=-0.1) parser <- add_argument(parser, "--outcome_formula", help='formula for the outcome variable', default="y~x+z") parser <- add_argument(parser, "--proxy_formula", help='formula for the proxy variable', default="w_pred~y+z") args <- parse_args(parser) -B0 <- 0 +B0 <- args$B0 Bxy <- args$Bxy Bzy <- args$Bzy