X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/acb119418aef75dfa1e882f975ae0638e7736a07..69948cae1e691191fc86e6abdaa485bc98f38f1f:/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