X-Git-Url: https://code.communitydata.science/ml_measurement_error_public.git/blobdiff_plain/5c931a7198452ff3ce0ace5b1f68046bfb33d352..refs/heads/master:/simulations/plot_dv_example.R diff --git a/simulations/plot_dv_example.R b/simulations/plot_dv_example.R index 45a5d51..88d88a8 100644 --- a/simulations/plot_dv_example.R +++ b/simulations/plot_dv_example.R @@ -6,7 +6,7 @@ library(filelock) library(argparser) parser <- arg_parser("Simulate data and fit corrected models.") -parser <- add_argument(parser, "--infile", default="example_4.feather", help="name of the file to read.") +parser <- add_argument(parser, "--infile", default="robustness_3_dv.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) @@ -86,9 +86,6 @@ build_plot_dataset <- function(df){ change.remember.file(args$remember_file, clear=TRUE) sims.df <- read_feather(args$infile) -sims.df[,Bzx:=NA] -sims.df[,y_explained_variance:=NA] -sims.df[,accuracy_imbalance_difference:=NA] plot.df <- build_plot_dataset(sims.df) remember(plot.df,args$name)