X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/5c931a7198452ff3ce0ace5b1f68046bfb33d352..d9d3e47a44ddead1cdf7a649bc0e9849c2219498:/simulations/plot_example.R diff --git a/simulations/plot_example.R b/simulations/plot_example.R index 09d6bf3..4da045b 100644 --- a/simulations/plot_example.R +++ b/simulations/plot_example.R @@ -9,7 +9,7 @@ source("summarize_estimator.R") parser <- arg_parser("Simulate data and fit corrected models.") -parser <- add_argument(parser, "--infile", default="example_2.feather", help="name of the file to read.") +parser <- add_argument(parser, "--infile", default="robustness_2.feather", help="name of the file to read.") parser <- add_argument(parser, "--remember-file", default="remembr.RDS", help="name of the remember file.") parser <- add_argument(parser, "--name", default="", help="The name to safe the data to in the remember file.") args <- parse_args(parser) @@ -47,7 +47,7 @@ args <- parse_args(parser) ## var.est = var(.SD[[paste0('B',coefname,'y.est.',suffix)]]), ## est.upper.95 = quantile(.SD[[paste0('B',coefname,'y.est.',suffix)]],0.95,na.rm=T), ## est.lower.95 = quantile(.SD[[paste0('B',coefname,'y.est.',suffix)]],0.05,na.rm=T), -## N.sims = .N, +## N.sims = . ## p.sign.correct = mean(as.integer(sign.correct & (! zero.in.ci))), ## variable=coefname, ## method=suffix