-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
287 lines (196 loc) · 7.25 KB
/
Copy pathMakefile
File metadata and controls
287 lines (196 loc) · 7.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
## This is https://github.com/bbolker/testing_bias_distribution
current: target
-include target.mk
Ignore = target.mk
-include makestuff/perl.def
######################################################################
vim_session:
bash -ic "vmt README.md TODO.md"
######################################################################
## Modularized float-baseline fitting 2026 Mar 08
## Moved from /sevilla on 2026 Apr 01
Sources += $(wildcard *.R)
autopipeR = TRUE
## Parameter setup
## const.params.R: fixed baseline
## float.params.R: time-varying baseline
## Generate observed data from parameters BINOMIAL deprecated
## const.data.Rout: float.data.sim.R const.params.rda
## float.data.Rout: float.data.sim.R float.params.rda
## %.data.Rout: float.data.sim.R %.params.rda
## $(pipeRcall)
## Poisson Version
## const.pois.data.Rout: pois.data.sim.R const.params.rda
## float.pois.data.Rout: pois.data.sim.R float.params.rda
%.pois.data.Rout: pois.data.sim.R %.params.rda
$(pipeRcall)
## Hack around a small chaining problem Mar 2026
float_update: float.params.Rout float.data.Rout
## Time series curves of simulated data
## const.plot.Rout: plot.dataview.R const.data.rda
## float.plot.Rout: plot.dataview.R float.data.rda
## %.plot.Rout: plot.dataview.R %.data.rda
## $(pipeRcall)
## Poisson Version
## const.pois.plot.Rout: plot.dataview.R const.data.rda
## float.pois.plot.Rout: plot.dataview.R float.data.rda
%.plot.Rout: pois.dataview.R %.data.rda
$(pipeRcall)
## Fixed fitting with non-varying B_lik.
## FIXME: It is now using true values as starting values for fitting, should test the performance on vary starting point
## FIXME: Fit float baseline data with fixed mechanism generate NaNs. No priority as its performance is expected to be bad
## const.fixed.fit.Rout: fixed.macpan.fit.R const.data.rda
## $(pipeRcall)
## Poisson Version
const.fixed.pois.fit.Rout: fixed.pois.fit.R const.pois.data.rda
$(pipeRcall)
## Flex fitting with varying B_lik
## FIXME: It is now using true values as starting values for fitting, should test the performance on vary starting point
## %.flex.fit.Rout: flex.macpan.fit.R %.data.rda
## $(pipeRcall)
## Poisson Version
%.flex.pois.fit.Rout: flex.pois.fit.R %.pois.data.rda
$(pipeRcall)
## Compare best fitted curve with data
## Labeling things better: do some points shapes and line types: flipping the dot and lines
## %.check.Rout: check.fit.R %.fit.rda
## $(pipeRcall)
%.pois.check.Rout: check.pois.fit.R %.pois.fit.rda
$(pipeRcall)
#### note the fixed vs flex, float and const
## float.flex.pois.check.Rout: Float baseline data, Flexible fitting mechanism
## const.flex.pois.check.Rout: Const baseline data, Flexible fitting mechanism
## const.fixed.pois.check.Rout: Constant baseline data, Fixed fitting mechanism
#### Investigate the identifiability issue
## Fixed the fitting parameter one at a time and see if we can get a better fitting for some subsets
## B_lik rename to B_mle
## Some wrapper function are in flex.pois.fit.R, keep finishing it.
## Map argument for a large function contains all the procedures we have
## Try augmenting the fitting procedure for all parameters
## Create a prediction plot that contains curves for both starting values and the optimized values
######################################################################
######################################################################
## meet 2025 Dec 11 (Thu)
Ignore += pix/
## Richard and Ben
sir_seasonal_test.Rout: sir_seasonal_test.R sirs_seasonal/tmb.R
$(pipeR)
Sources += floating.md
## Try to simulate with macpan
simTest.Rout: simTest.R
$(pipeR)
## mpFitting.html: mpFitting.md
######################################################################
subdirs += sevilla
sirFuns.Rout: sirFuns.R
$(pipeR)
## sirSimp.Rout: sirSimp.R sirFuns.rda
sirSimp.Rout: sirSimp.R sirFuns.rda
$(pipeR)
sirSimp.tplot.Rout: testplot.R sirSimp.rds
$(pipeR)
######################################################################
## log-diff_cdf-log_simp.png
## log-diff_simp-log_simp.png
## Test_positivity_vs_test_proportion_phi_inc.png
## OR_Sim.Rout: OR_Sim.R OR_Sim.md
OR_Sim_SIR_MacPan.Rout: OR_Sim_SIR_MacPan.R
$(pipeR)
## OR_Sim.Rout: OR_Sim.R OR_Sim.md
OR_Sim.Rout: OR_Sim.R
$(pipeR)
######################################################################
Ignore += docs *.html
Sources += $(wildcard *.rmd *.qmd *.md)
testing_distrib.html: testing_distrib.rmd
%.html: %.rmd
echo "rmarkdown::render(\"$<\")" | R --slave
%.html: %.md
$(pandocs)
%.html: %.qmd
quarto render $<
docs/%.html: %.html
cp $< $@
######################################################################
Sources += betaParams.md simple.md README.md
######################################################################
Sources += $(wildcard *.R)
## Not working yet 2024 Sep 19 (Thu)
corrCheck.Rout: corrCheck.R
$(pipeR)
Expected_Test_positivity_figure.Rout: Expected_Test_positivity_figure.R testing_funs.R
testing_distrib.html: testing_distrib.rmd testing_funs.R
##### 2024 Oct 16 (Wed)
Logspace_comparing_methods.Rout: Logspace_comparing_methods.R
inc-testing_positivity-ratio.Rout: inc-testing_positivity-ratio.R
######################################################################
## Robust binomial?
## drbinom.md
drbinom.Rout: drbinom.R
$(pipeR)
######################################################################
### Odds ratios
Sources += or.md $(wildcard *.mac)
## or.mac.out: or.mac or.md
## or_mac.html: or_mac.rmd
or.mac.tex: or.mac.out mactex.pl
$(PUSH)
######################################################################
Sources += spainReport.md
## sudo npm install -g markdown-cli-renderer
## Still having md-math problems 2026 Jan 19 (Mon)
spainMath.html: spainMath.md
pandoc $< -s --mathjax \
--css=https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css \
-o $@
spainMath.gfmview: spainMath.md
grip $<
## spainMath.pdf: spainMath.md
spainMath.pdf: spainMath.tex
pdflatex $<
Ignore += spainMath.tex
spainMath.tex: spainMath.md
$(pandocs)
Sources += $(wildcard *.max)
spainMath.maxima: spainMath.max
## rvdss stuff moved to ariCanada
## Some implicit curves of positivity vs. test proportion
## First attempt
orCurves.Rout: orCurves.R
## Now modularized a bit
## Original grid (two prevalences, three shapes)
orGrid.Rout: orGrid.R
## Try to converge on a point
## orConv.Rout: orConv.R
## orConv.compPlots.Rout: compPlots.R orConv.R
## orGrid.compPlots.Rout: compPlots.R
%.compPlots.Rout: compPlots.R %.rds
$(pipeR)
######################################################################
is.Rout: is.R
$(pipeR)
## Calculate best hazard for fixed hazard ratio?
mathHazard.Rout: mathHazard.R
$(pipeR)
## Beta illustrations
betaIllus.Rout: betaIllus.R
######################################################################
Ignore += $(subdirs)
alldirs += $(subdirs)
### Makestuff
Sources += Makefile
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/02.stamp
makestuff/%.stamp:
- $(RM) makestuff/*.stamp
(cd makestuff && $(MAKE) pull) || git clone --depth 1 $(msrepo)/makestuff
touch $@
-include makestuff/os.mk
-include makestuff/pipeR.mk
-include makestuff/max.mk
-include makestuff/texj.mk
-include makestuff/pdfpages.mk
-include makestuff/git.mk
-include makestuff/gitbranch.mk
-include makestuff/visual.mk