+ ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_4_dv" --remember-file $@
+
+
+robustness_5_jobs_p1: grid_sweep.py 02_indep_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1.386,2.197], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"]}' --outfile $@
+
+robustness_5_jobs_p2: grid_sweep.py 02_indep_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[0.405,0.846], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"]}' --outfile $@
+
+robustness_5_jobs_p3: grid_sweep.py 02_indep_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[0,0.25], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"]}' --outfile $@
+
+robustness_5_jobs_p4: grid_sweep.py 02_indep_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[2.944], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"]}' --outfile $@
+
+
+robustness_5.feather: robustness_5_jobs_p1 robustness_5_jobs_p2 robustness_5_jobs_p3
+ rm -f $@
+ $(eval END_1!=cat robustness_5_jobs_p1 | wc -l)
+ $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
+ $(eval END_2!=cat robustness_5_jobs_p2 | wc -l)
+ $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
+ $(eval END_3!=cat robustness_5_jobs_p3 | wc -l)
+ $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
+ $(eval END_4!=cat robustness_5_jobs_p4 | wc -l)
+ $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
+
+ $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p1;)
+ $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p2;)
+ $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p3;)
+ $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p4;)
+
+robustness_5.RDS: plot_example.R robustness_5.feather summarize_estimator.R
+ rm -f $@
+ ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_5" --remember-file $@
+
+
+# '{"N":${robustness_Ns},"Bxy":[0.7],"Bzy":[-0.7],"m":${ms}, "seed":${seeds}, "outfile":["example_4.feather"], "z_bias":[0.5]}' --example_4_jobs
+
+robustness_5_dv_jobs_p1: grid_sweep.py 04_depvar_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[0,0.25], "outcome_formula":["y~x+z"], "z_bias":[-0.5]}' --outfile $@
+
+robustness_5_dv_jobs_p2: grid_sweep.py 04_depvar_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[0.405,0.846], "outcome_formula":["y~x+z"], "z_bias":[-0.5]}' --outfile $@
+
+robustness_5_dv_jobs_p3: grid_sweep.py 04_depvar_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[1.386,2.197],"outcome_formula":["y~x+z"], "z_bias":[-0.5]}' --outfile $@
+
+robustness_5_dv_jobs_p4: grid_sweep.py 04_depvar_differential.R simulation_base.R
+ rm -f $@
+ ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_5_dv.feather"],"Bzy":[-0.7],"Bxy":[0.7],"Bzx":[2.944], "outcome_formula":["y~x+z"], "z_bias":[-0.5]}' --outfile $@
+
+robustness_5_dv.feather: robustness_5_dv_jobs_p1 robustness_5_dv_jobs_p2 robustness_5_dv_jobs_p3 robustness_5_dv_jobs_p4
+ rm -f $@
+ $(eval END_1!=cat robustness_5_dv_jobs_p1 | wc -l)
+ $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
+ $(eval END_2!=cat robustness_5_dv_jobs_p2 | wc -l)
+ $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
+ $(eval END_3!=cat robustness_5_dv_jobs_p3 | wc -l)
+ $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
+ $(eval END_4!=cat robustness_5_dv_jobs_p4 | wc -l)
+ $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
+
+
+ $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_dv_jobs_p1;)
+ $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_dv_jobs_p2;)
+ $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_dv_jobs_p3;)
+ $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_dv_jobs_p4;)
+
+
+robustness_5_dv.RDS: plot_dv_example.R robustness_5_dv.feather summarize_estimator.R
+ rm -f $@
+ ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_5_dv" --remember-file $@
+
+
+clean_main:
+ rm -f remembr.RDS
+ rm -f example_1_jobs
+ rm -f example_2_jobs
+ rm -f example_3_jobs
+ rm -f example_4_jobs
+ rm -f example_1.feather
+ rm -f example_2.feather
+ rm -f example_3.feather
+ rm -f example_4.feather
+