6 seeds=[$(shell seq -s, 1 500)]
7 explained_variances=[0.1]
11 supplement:robustness_1.RDS robustness_1_dv.RDS robustness_2.RDS robustness_2_dv.RDS robustness_3.RDS robustness_3_dv.RDS robustness_3_proflik.RDS robustness_3_dv_proflik.RDS robustness_4.RDS robustness_4_dv.RDS robustness_5.RDS robustness_5_dv.RDS robustness_6.feather
13 srun=sbatch --wait --verbose run_job.sbatch
16 joblists:example_1_jobs example_2_jobs example_3_jobs
18 # test_true_z_jobs: test_true_z.R simulation_base.R
19 # sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript test_true_z.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["test_true_z.feather"], "y_explained_variancevari":${explained_variances}, "Bzx":${Bzx}}' --outfile test_true_z_jobsb
21 # test_true_z.feather: test_true_z_jobs
22 # rm -f test_true_z.feather
23 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 test_true_z_jobs
24 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 test_true_z_jobs
27 example_1_jobs: 01_two_covariates.R simulation_base.R grid_sweep.py pl_methods.R
28 ${srun} ./grid_sweep.py --command "Rscript 01_two_covariates.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_1.feather"], "y_explained_variance":${explained_variances}, "Bzx":[1]}' --outfile example_1_jobs
30 example_1.feather: example_1_jobs
31 rm -f example_1.feather
32 sbatch --wait --verbose --array=1-1000 run_simulation.sbatch 0 example_1_jobs
33 sbatch --wait --verbose --array=1001-2000 run_simulation.sbatch 0 example_1_jobs
34 sbatch --wait --verbose --array=2001-3000 run_simulation.sbatch 0 example_1_jobs
35 sbatch --wait --verbose --array=3001-$(shell cat example_1_jobs | wc -l) run_simulation.sbatch 0 example_1_jobs
37 example_2_jobs: 02_indep_differential.R simulation_base.R grid_sweep.py pl_methods.R
38 sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript 02_indep_differential.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+z+x"]}' --outfile example_2_jobs
40 example_2.feather: example_2_jobs
41 rm -f example_2.feather
42 sbatch --wait --verbose --array=1-1000 run_simulation.sbatch 0 example_2_jobs
43 sbatch --wait --verbose --array=1001-2000 run_simulation.sbatch 0 example_2_jobs
44 sbatch --wait --verbose --array=2001-3000 run_simulation.sbatch 0 example_2_jobs
45 sbatch --wait --verbose --array=3001-$(shell cat example_2_jobs | wc -l) run_simulation.sbatch 0 example_2_jobs
49 # example_2_B_jobs: example_2_B.R
50 # sbatch --wait --verbose run_job.sbatch python3 ./grid_sweep.py --command "Rscript example_2_B.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2_B.feather"]}' --outfile example_2_B_jobs
52 # example_2_B.feather: example_2_B_jobs
53 # rm -f example_2_B.feather
54 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_B_jobs
56 example_3_jobs: 03_depvar.R simulation_base.R grid_sweep.py pl_methods.R
57 sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript 03_depvar.R" --arg_dict '{"N":${Ns},"m":${ms}, "Bxy":[0.7],"Bzy":[-0.7],"Bzx":[1],"seed":${seeds}, "outfile":["example_3.feather"], "y_explained_variance":${explained_variances}}' --outfile example_3_jobs
59 example_3.feather: example_3_jobs
60 rm -f example_3.feather
61 sbatch --wait --verbose --array=1-1000 run_simulation.sbatch 0 example_3_jobs
62 sbatch --wait --verbose --array=1001-2000 run_simulation.sbatch 0 example_3_jobs
63 sbatch --wait --verbose --array=2001-3000 run_simulation.sbatch 0 example_3_jobs
64 sbatch --wait --verbose --array=3001-$(shell cat example_3_jobs | wc -l) run_simulation.sbatch 0 example_3_jobs
66 example_4_jobs: 04_depvar_differential.R simulation_base.R grid_sweep.py pl_methods.R
67 sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript 04_depvar_differential.R" --arg_dict '{"N":${Ns},"Bxy":[0.7],"Bzy":[-0.7],"Bzx":[1], "m":${ms}, "seed":${seeds}, "outfile":["example_4.feather"], "z_bias":[-0.5], "prediction_accuracy":[0.73]}' --outfile example_4_jobs
69 example_4.feather: example_4_jobs
70 rm -f example_4.feather
71 sbatch --wait --verbose --array=1-1000 run_simulation.sbatch 0 example_4_jobs
72 sbatch --wait --verbose --array=1001-2000 run_simulation.sbatch 0 example_4_jobs
73 sbatch --wait --verbose --array=2001-3001 run_simulation.sbatch 0 example_4_jobs
74 sbatch --wait --verbose --array=2001-3000 run_simulation.sbatch 0 example_4_jobs
75 sbatch --wait --verbose --array=3001-$(shell cat example_4_jobs | wc -l) run_simulation.sbatch 0 example_4_jobs
78 remembr.RDS:example_1.feather example_2.feather example_3.feather example_4.feather plot_example.R plot_dv_example.R summarize_estimator.R
80 ${srun} Rscript plot_example.R --infile example_1.feather --name "plot.df.example.1"
81 ${srun} Rscript plot_example.R --infile example_2.feather --name "plot.df.example.2"
82 ${srun} Rscript plot_dv_example.R --infile example_3.feather --name "plot.df.example.3"
83 ${srun} Rscript plot_dv_example.R --infile example_4.feather --name "plot.df.example.4"
90 robustness_Ns=[1000,5000]
91 robustness_ms=[100,200]
93 #in robustness 1 / example 2 misclassification is correlated with Y.
94 robustness_1_jobs_p1: 02_indep_differential.R simulation_base.R grid_sweep.py
95 sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript 02_indep_differential.R" --arg_dict '{"N":[1000],"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_1.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3,0],"Bxy":[0.3],"Bzx":[1,0], "outcome_formula":["y~x+z"], "z_bias":[0, 0.5], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~1"]}' --outfile robustness_1_jobs_p1
97 robustness_1_jobs_p2: 02_indep_differential.R simulation_base.R grid_sweep.py
98 sbatch --wait --verbose run_job.sbatch ./grid_sweep.py --command "Rscript 02_indep_differential.R" --arg_dict '{"N":[5000],"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_1.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3,0],"Bxy":[0.3],"Bzx":[1,0], "outcome_formula":["y~x+z"], "z_bias":[0, 0.5], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~1"]}' --outfile robustness_1_jobs_p2
100 robustness_1.feather: robustness_1_jobs_p1 robustness_1_jobs_p2
102 $(eval END_1!=cat robustness_1_jobs_p1 | wc -l)
103 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
104 $(eval END_2!=cat robustness_1_jobs_p2 | wc -l)
105 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
106 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_1_jobs_p1;)
107 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_1_jobs_p2;)
109 robustness_1.RDS: robustness_1.feather summarize_estimator.R
110 rm -f robustness_1.RDS
111 ${srun} Rscript plot_example.R --infile $< --name "robustness_1" --remember-file $@
113 # when Bzy is 0 and zbias is not zero, we have the case where P(W|Y,X,Z) has an omitted variable that is conditionanlly independent from Y. Note that X and Z are independent in this scenario.
114 robustness_1_dv_jobs_p1: simulation_base.R 04_depvar_differential.R grid_sweep.py
115 ${srun} ./grid_sweep.py --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":[1000],"Bzx":[1], "Bxy":[0.7,0],"Bzy":[-0.7,0],"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_1_dv.feather"], "proxy_formula":["w_pred~y"],"z_bias":[-0.5]}' --outfile robustness_1_dv_jobs_p1
117 robustness_1_dv_jobs_p2: simulation_base.R 04_depvar_differential.R grid_sweep.py
118 ${srun} ./grid_sweep.py --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":[5000],"Bzx":[1], "Bxy":[0.7,0],"Bzy":[-0.7,0],"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_1_dv.feather"], "proxy_formula":["w_pred~y"],"z_bias":[-0.5]}' --outfile robustness_1_dv_jobs_p2
120 robustness_1_dv.feather: robustness_1_dv_jobs_p1 robustness_1_dv_jobs_p2
122 $(eval END_1!=cat robustness_1_dv_jobs_p1 | wc -l)
123 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
124 $(eval END_2!=cat robustness_1_dv_jobs_p2 | wc -l)
125 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_1))
126 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_1_dv_jobs_p1;)
127 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_1_dv_jobs_p2;)
129 robustness_1_dv.RDS: robustness_1_dv.feather summarize_estimator.R
131 ${srun} Rscript plot_dv_example.R --infile $< --name "robustness_1_dv" --remember-file $@
134 robustness_2_jobs_p1: grid_sweep.py 01_two_covariates.R simulation_base.R
136 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.60,0.65]}' --outfile $@
138 robustness_2_jobs_p2: grid_sweep.py 01_two_covariates.R simulation_base.R
140 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.70,0.75]}' --outfile $@
142 robustness_2_jobs_p3: grid_sweep.py 01_two_covariates.R simulation_base.R
144 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.80,0.85]}' --outfile $@
146 robustness_2_jobs_p4: grid_sweep.py 01_two_covariates.R simulation_base.R
148 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.90,0.95]}' --outfile $@
150 robustness_2.feather: robustness_2_jobs_p1 robustness_2_jobs_p2 robustness_2_jobs_p3 robustness_2_jobs_p4
152 $(eval END_1!=cat robustness_2_jobs_p1 | wc -l)
153 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
154 $(eval END_2!=cat robustness_2_jobs_p2 | wc -l)
155 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
156 $(eval END_3!=cat robustness_2_jobs_p3 | wc -l)
157 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
158 $(eval END_4!=cat robustness_2_jobs_p4 | wc -l)
159 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
161 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_jobs_p1;)
162 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_jobs_p2;)
163 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_jobs_p3;)
164 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_jobs_p4;)
166 robustness_2.RDS: plot_example.R robustness_2.feather summarize_estimator.R
168 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_2" --remember-file $@
170 robustness_2_dv_jobs_p1: grid_sweep.py 03_depvar.R simulation_base.R
172 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.60,0.65]}' --outfile $@
174 robustness_2_dv_jobs_p2: grid_sweep.py 03_depvar.R simulation_base.R
176 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.70,0.75]}' --outfile $@
178 robustness_2_dv_jobs_p3: grid_sweep.py 03_depvar.R simulation_base.R
180 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.80,0.85]}' --outfile $@
182 robustness_2_dv_jobs_p4: grid_sweep.py 03_depvar.R simulation_base.R
184 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_2_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.90,0.95]}' --outfile $@
186 robustness_2_dv.feather: robustness_2_dv_jobs_p1 robustness_2_dv_jobs_p2 robustness_2_dv_jobs_p3 robustness_2_dv_jobs_p4
188 $(eval END_1!=cat robustness_2_dv_jobs_p1 | wc -l)
189 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
190 $(eval END_2!=cat robustness_2_dv_jobs_p2 | wc -l)
191 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
192 $(eval END_3!=cat robustness_2_dv_jobs_p3 | wc -l)
193 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
194 $(eval END_4!=cat robustness_2_dv_jobs_p4 | wc -l)
195 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
197 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_dv_jobs_p1;)
198 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_dv_jobs_p2;)
199 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_dv_jobs_p3;)
200 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_2_dv_jobs_p4;)
202 robustness_2_dv.RDS: plot_dv_example.R robustness_2_dv.feather summarize_estimator.R
204 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_2_dv" --remember-file $@
207 robustness_3_proflik_jobs: grid_sweep.py 01_two_covariates.R simulation_base.R
209 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":[1000],"m":[100], "seed":${seeds}, "outfile":["robustness_3_proflik.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"Px":[0.5,0.6,0.7,0.8,0.9,0.95], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.85], "confint_method":['spline']}' --outfile $@
211 robustness_3_proflik.feather: robustness_3_proflik_jobs
213 $(eval END_1!=cat robustness_3_proflik_jobs | wc -l)
214 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
215 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_proflik_jobs;)
217 robustness_3_proflik.RDS: plot_example.R robustness_3_proflik.feather summarize_estimator.R
219 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_3_proflik" --remember-file $@
222 robustness_3_jobs_p1: grid_sweep.py 01_two_covariates.R simulation_base.R
224 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"Px":[0.5,0.6], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.85]}' --outfile $@
226 robustness_3_jobs_p2: grid_sweep.py 01_two_covariates.R simulation_base.R
228 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"Px":[0.7,0.8], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.85]}' --outfile $@
230 robustness_3_jobs_p3: grid_sweep.py 01_two_covariates.R simulation_base.R
232 ${srun} ./$< --command 'Rscript 01_two_covariates.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"Px":[0.9,0.95], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x"], "truth_formula":["x~z"], "prediction_accuracy":[0.85]}' --outfile $@
234 robustness_3.feather: robustness_3_jobs_p1 robustness_3_jobs_p2 robustness_3_jobs_p3
236 $(eval END_1!=cat robustness_3_jobs_p1 | wc -l)
237 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
238 $(eval END_2!=cat robustness_3_jobs_p2 | wc -l)
239 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
240 $(eval END_3!=cat robustness_3_jobs_p3 | wc -l)
241 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
243 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_jobs_p1;)
244 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_jobs_p2;)
245 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_jobs_p3;)
247 robustness_3.RDS: plot_example.R robustness_3.feather summarize_estimator.R
249 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_3" --remember-file $@
251 robustness_3_dv_proflik_jobs: grid_sweep.py 03_depvar.R simulation_base.R
253 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":[1000],"m":[100], "seed":${seeds}, "outfile":["robustness_3_dv_proflik.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"B0":[0,0.405,0.846,1.386,2.197,2.944], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.85],"confint_method":['spline']}' --outfile $@
255 robustness_3_dv_proflik.feather: robustness_3_dv_proflik_jobs
257 $(eval END_1!=cat robustness_3_dv_proflik_jobs | wc -l)
258 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
259 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_dv_proflik_jobs;)
261 robustness_3_dv_proflik.RDS: plot_dv_example.R robustness_3_dv_proflik.feather summarize_estimator.R
263 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_3_dv_proflik" --remember-file $@
266 robustness_3_dv_jobs_p1: grid_sweep.py 03_depvar.R simulation_base.R
268 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"B0":[0,0.405], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.85]}' --outfile $@
270 robustness_3_dv_jobs_p2: grid_sweep.py 03_depvar.R simulation_base.R
272 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1],"B0":[0.847,1.386], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.85]}' --outfile $@
275 robustness_3_dv_jobs_p3: grid_sweep.py 03_depvar.R simulation_base.R
277 ${srun} ./$< --command 'Rscript 03_depvar.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_3_dv.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "B0":[2.197,2.944], "outcome_formula":["y~x+z"], "prediction_accuracy":[0.85]}' --outfile $@
279 robustness_3_dv.feather: robustness_3_dv_jobs_p1 robustness_3_dv_jobs_p2 robustness_3_dv_jobs_p3
281 $(eval END_1!=cat robustness_3_dv_jobs_p1 | wc -l)
282 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
283 $(eval END_2!=cat robustness_3_dv_jobs_p2 | wc -l)
284 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
285 $(eval END_3!=cat robustness_3_dv_jobs_p3 | wc -l)
286 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
288 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_dv_jobs_p1;)
289 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_dv_jobs_p2;)
290 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_3_dv_jobs_p3;)
293 robustness_3_dv.RDS: plot_dv_example.R robustness_3_dv.feather summarize_estimator.R
295 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_3_dv" --remember-file $@
299 robustness_4_jobs_p1: grid_sweep.py 02_indep_differential.R simulation_base.R
301 ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"], "y_bias":[-2.944,-2.197]}' --outfile $@
303 robustness_4_jobs_p2: grid_sweep.py 02_indep_differential.R simulation_base.R
305 ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"], "y_bias":[-1.386,-0.846]}' --outfile $@
307 robustness_4_jobs_p3: grid_sweep.py 02_indep_differential.R simulation_base.R
309 ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"], "y_bias":[-0.405,-0.25]}' --outfile $@
311 robustness_4_jobs_p4: grid_sweep.py 02_indep_differential.R simulation_base.R
313 ${srun} ./$< --command 'Rscript 02_indep_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3],"Bzx":[1], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"], "y_bias":[0,-0.1]}' --outfile $@
316 robustness_4.feather: robustness_4_jobs_p1 robustness_4_jobs_p2 robustness_4_jobs_p3
318 $(eval END_1!=cat robustness_4_jobs_p1 | wc -l)
319 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
320 $(eval END_2!=cat robustness_4_jobs_p2 | wc -l)
321 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
322 $(eval END_3!=cat robustness_4_jobs_p3 | wc -l)
323 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
324 $(eval END_4!=cat robustness_4_jobs_p3 | wc -l)
325 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_4))
328 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_jobs_p1;)
329 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_jobs_p2;)
330 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_jobs_p3;)
331 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_jobs_p3;)
334 robustness_4.RDS: plot_example.R robustness_4.feather summarize_estimator.R
336 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_4" --remember-file $@
339 # '{"N":${robustness_Ns},"Bxy":[0.7],"Bzy":[-0.7],"m":${ms}, "seed":${seeds}, "outfile":["example_4.feather"], "z_bias":[0.5]}' --example_4_jobs
341 robustness_4_dv_jobs_p1: grid_sweep.py 04_depvar_differential.R simulation_base.R
343 ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[1], "outcome_formula":["y~x+z"], "z_bias":[0,0.1]}' --outfile $@
345 robustness_4_dv_jobs_p2: grid_sweep.py 04_depvar_differential.R simulation_base.R
347 ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[1], "outcome_formula":["y~x+z"], "z_bias":[0.25,0.405]}' --outfile $@
349 robustness_4_dv_jobs_p3: grid_sweep.py 04_depvar_differential.R simulation_base.R
351 ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4_dv.feather"], "Bzy":[-0.7],"Bxy":[0.7],"Bzx":[1],"outcome_formula":["y~x+z"],"z_bias":[0.846,1.386]}' --outfile $@
353 robustness_4_dv_jobs_p4: grid_sweep.py 04_depvar_differential.R simulation_base.R
355 ${srun} ./$< --command 'Rscript 04_depvar_differential.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_4_dv.feather"],"Bzy":[-0.7],"Bxy":[0.7],"Bzx":[1], "outcome_formula":["y~x+z"], "z_bias":[2.197,2.944]}' --outfile $@
357 robustness_4_dv.feather: robustness_4_dv_jobs_p1 robustness_4_dv_jobs_p2 robustness_4_dv_jobs_p3 robustness_4_dv_jobs_p4
359 $(eval END_1!=cat robustness_4_dv_jobs_p1 | wc -l)
360 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
361 $(eval END_2!=cat robustness_4_dv_jobs_p2 | wc -l)
362 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
363 $(eval END_3!=cat robustness_4_dv_jobs_p3 | wc -l)
364 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
365 $(eval END_4!=cat robustness_4_dv_jobs_p4 | wc -l)
366 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
367 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_dv_jobs_p1;)
368 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_dv_jobs_p2;)
369 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_dv_jobs_p3;)
370 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_4_dv_jobs_p4;)
373 robustness_4_dv.RDS: plot_dv_example.R robustness_4_dv.feather summarize_estimator.R
375 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_4_dv" --remember-file $@
378 robustness_5_jobs_p1: grid_sweep.py 02_indep_differential.R simulation_base.R
380 ${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 $@
382 robustness_5_jobs_p2: grid_sweep.py 02_indep_differential.R simulation_base.R
384 ${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 $@
386 robustness_5_jobs_p3: grid_sweep.py 02_indep_differential.R simulation_base.R
388 ${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 $@
390 robustness_5_jobs_p4: grid_sweep.py 02_indep_differential.R simulation_base.R
392 ${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 $@
395 robustness_5.feather: robustness_5_jobs_p1 robustness_5_jobs_p2 robustness_5_jobs_p3
397 $(eval END_1!=cat robustness_5_jobs_p1 | wc -l)
398 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
399 $(eval END_2!=cat robustness_5_jobs_p2 | wc -l)
400 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
401 $(eval END_3!=cat robustness_5_jobs_p3 | wc -l)
402 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
403 $(eval END_4!=cat robustness_5_jobs_p4 | wc -l)
404 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
406 $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p1;)
407 $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p2;)
408 $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p3;)
409 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_5_jobs_p4;)
411 robustness_5.RDS: plot_example.R robustness_5.feather summarize_estimator.R
413 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_5" --remember-file $@
416 # '{"N":${robustness_Ns},"Bxy":[0.7],"Bzy":[-0.7],"m":${ms}, "seed":${seeds}, "outfile":["example_4.feather"], "z_bias":[0.5]}' --example_4_jobs
418 robustness_5_dv_jobs_p1: grid_sweep.py 04_depvar_differential.R simulation_base.R
420 ${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 $@
422 robustness_5_dv_jobs_p2: grid_sweep.py 04_depvar_differential.R simulation_base.R
424 ${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 $@
426 robustness_5_dv_jobs_p3: grid_sweep.py 04_depvar_differential.R simulation_base.R
428 ${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 $@
430 robustness_5_dv_jobs_p4: grid_sweep.py 04_depvar_differential.R simulation_base.R
432 ${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 $@
434 robustness_5_dv.feather: robustness_5_dv_jobs_p1 robustness_5_dv_jobs_p2 robustness_5_dv_jobs_p3 robustness_5_dv_jobs_p4
436 $(eval END_1!=cat robustness_5_dv_jobs_p1 | wc -l)
437 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
438 $(eval END_2!=cat robustness_5_dv_jobs_p2 | wc -l)
439 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
440 $(eval END_3!=cat robustness_5_dv_jobs_p3 | wc -l)
441 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
442 $(eval END_4!=cat robustness_5_dv_jobs_p4 | wc -l)
443 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
446 $(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;)
447 $(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;)
448 $(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;)
449 $(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;)
452 robustness_5_dv.RDS: plot_dv_example.R robustness_5_dv.feather summarize_estimator.R
454 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_5_dv" --remember-file $@
463 rm -f example_1.feather
464 rm -f example_2.feather
465 rm -f example_3.feather
466 rm -f example_4.feather
474 rm -f robustness*.RDS
476 rm -f robustness_*_jobs_*
477 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_jobs
479 # example_2_B_mecor_jobs:
480 # sbatch --wait --verbose run_job.sbatch grid_sweep.py --command "Rscript example_2_B_mecor.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2_B_mecor.feather"]}' --outfile example_2_B_mecor_jobs
482 # example_2_B_mecor.feather:example_2_B_mecor.R example_2_B_mecor_jobs
483 # rm -f example_2_B_mecor.feather
484 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_B_mecor_jobs
485 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_mecor_jobs
487 robustness_6_jobs_p1: grid_sweep.py 03_indep_differential_nonnorm.R simulation_base.R
489 ${srun} ./$< --command 'Rscript 03_indep_differential_nonnorm.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_6.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"],"sd_y_mixin":[0,1,2.5]}' --outfile $@
491 robustness_6_jobs_p2: grid_sweep.py 03_indep_differential_nonnorm.R simulation_base.R
493 ${srun} ./$< --command 'Rscript 03_indep_differential_nonnorm.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_6.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"],"sd_y_mixin":[5,10]}' --outfile $@
495 robustness_6_jobs_p3: grid_sweep.py 03_indep_differential_nonnorm.R simulation_base.R
497 ${srun} ./$< --command 'Rscript 03_indep_differential_nonnorm.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_6.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"],"sd_y_mixin":[0,1,2.5],"y_bias":[0]}' --outfile $@
499 robustness_6_jobs_p4: grid_sweep.py 03_indep_differential_nonnorm.R simulation_base.R
501 ${srun} ./$< --command 'Rscript 03_indep_differential_nonnorm.R' --arg_dict '{"N":${robustness_Ns},"m":${robustness_ms}, "seed":${seeds}, "outfile":["robustness_6.feather"],"y_explained_variance":${explained_variances}, "Bzy":[-0.3],"Bxy":[0.3], "outcome_formula":["y~x+z"], "proxy_formula":["w_pred~y+x+z"], "truth_formula":["x~z"],"sd_y_mixin":[5,10],"y_bias":[0]}' --outfile $@
504 robustness_6.feather: robustness_6_jobs_p1 robustness_6_jobs_p2 robustness_6_jobs_p3 robustness_6_jobs_p4
506 $(eval END_1!=cat robustness_6_jobs_p1 | wc -l)
507 $(eval ITEMS_1!=seq $(START) $(STEP) $(END_1))
508 $(eval END_2!=cat robustness_6_jobs_p2 | wc -l)
509 $(eval ITEMS_2!=seq $(START) $(STEP) $(END_2))
510 $(eval END_3!=cat robustness_6_jobs_p3 | wc -l)
511 $(eval ITEMS_3!=seq $(START) $(STEP) $(END_3))
512 $(eval END_4!=cat robustness_6_jobs_p4 | wc -l)
513 $(eval ITEMS_4!=seq $(START) $(STEP) $(END_4))
516 # $(foreach item,$(ITEMS_1),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_6_jobs_p1;)
517 # $(foreach item,$(ITEMS_2),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_6_jobs_p2;)
518 # $(foreach item,$(ITEMS_3),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_6_jobs_p3;)
519 $(foreach item,$(ITEMS_4),sbatch --wait --verbose --array=$(shell expr $(item) + $(ONE))-$(shell expr $(item) + $(STEP)) run_simulation.sbatch 0 robustness_6_jobs_p4;)
522 robustness_6.RDS: plot_example.R robustness_6.feather summarize_estimator.R
524 ${srun} Rscript $< --infile $(word 2, $^) --name "robustness_6" --remember-file $@