Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed models / data files for cmdstan #171

Merged
merged 25 commits into from
Jun 10, 2020
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f328d7c
Added knitr/worldcup and knitr/chapter2/worldcup* data files
alecksphillips Feb 25, 2020
bad63a8
Fixed ecology models by reformatting data files into syntax understoo…
Mar 10, 2020
63a9440
Fixed garch, hier_multivariate and moving-avg models
PhilClemson Mar 14, 2020
6ea6e37
Added data files for pool-binary-trials
alecksphillips Mar 20, 2020
65aec79
Fixed gaussian-process models (all data file syntax related)
PhilClemson Mar 23, 2020
98cff00
Fixed some more models with data file issues and also fixed a typo
PhilClemson Mar 23, 2020
c0d1e8e
Fixed remaining models in misc with data file issues
PhilClemson Mar 24, 2020
8ba28f0
Added dump data files for car-iar-poisson models
PhilClemson Mar 26, 2020
8fcab99
Added earnings data files
PhilClemson Mar 26, 2020
cd4f008
Added missing data for knitr/car-iar-poisson models
alecksphillips Mar 31, 2020
e2f9442
Added missing data for golf1 models
alecksphillips Mar 31, 2020
6926feb
Added dump data files for ARM/Ch.17 models. However, these are now ge…
PhilClemson Mar 31, 2020
033f4ef
Fixes of models in education\hierarchical_2pl and education\tutorial_…
PhilClemson Mar 31, 2020
a0e611e
Merge pull request #1 from alecksphillips/master
PhilClemson Mar 31, 2020
a2080b3
Merge pull request #2 from alecksphillips/data-car-iar-poisson
PhilClemson Mar 31, 2020
96b8ec7
Merge pull request #3 from alecksphillips/data-golf
PhilClemson Mar 31, 2020
6b07319
Fixed / added data files for BPA models
PhilClemson Apr 13, 2020
438b8c5
Added priors in fx_factor.stan and added data files for knitr\simples…
PhilClemson Apr 23, 2020
6cf55c5
Added data file for BPA\Ch.10\js_ms.stan
PhilClemson Apr 23, 2020
659e916
Fixed education/dina_independent models and added data and inits file…
PhilClemson Apr 30, 2020
b3f25ca
Revert "Added dump data files for car-iar-poisson models"
PhilClemson May 1, 2020
d062ff4
Revert "Added missing data for knitr/car-iar-poisson models"
PhilClemson May 1, 2020
b01fc3b
Included new folder 'applications' and added the shared peptide model
PhilClemson May 22, 2020
f4848d3
Add Imperial's COVID-19 model
remoore May 22, 2020
9e196b3
Removed shared peptide model for now
PhilClemson Jun 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added dump data files for car-iar-poisson models
PhilClemson committed Mar 26, 2020
commit 8ba28f0cf1c8c8831841e77ff804b31aadb69851
48 changes: 48 additions & 0 deletions knitr/car-iar-poisson/bym2.data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
N <-
56L
N_edges <-
132
node1 <-
c(1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 7, 7, 7, 7,
9, 9, 9, 9, 9, 10, 10, 11, 13, 13, 14, 14, 14, 15, 15, 15, 16,
16, 16, 16, 17, 17, 18, 18, 18, 18, 18, 20, 21, 21, 23, 23, 23,
23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 26, 26, 26, 27,
27, 27, 28, 28, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31,
32, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 36, 36, 36, 37,
37, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 41, 41, 42, 42,
44, 44, 45, 46, 46, 47, 47, 47, 48, 49, 49, 49, 51, 52, 55)
node2 <-
c(5, 9, 11, 19, 7, 10, 6, 12, 18, 20, 28, 11, 12, 13, 19, 8,
10, 13, 16, 17, 11, 17, 19, 23, 29, 16, 22, 12, 17, 19, 31, 32,
35, 25, 29, 50, 17, 21, 22, 29, 19, 29, 20, 28, 33, 55, 56, 55,
29, 50, 29, 34, 36, 37, 39, 27, 30, 31, 44, 47, 48, 55, 56, 26,
29, 29, 42, 43, 31, 32, 55, 33, 45, 34, 43, 50, 38, 42, 44, 45,
56, 32, 35, 46, 47, 35, 45, 56, 39, 40, 42, 43, 51, 52, 54, 37,
46, 37, 39, 41, 41, 46, 42, 44, 49, 51, 54, 40, 41, 41, 49, 52,
46, 49, 53, 43, 51, 48, 49, 56, 47, 53, 48, 49, 53, 49, 52, 53,
54, 54, 54, 56)
y <-
c(9, 39, 11, 9, 15, 8, 26, 7, 6, 20, 13, 5, 3, 8, 17, 9, 2, 7,
9, 7, 16, 31, 11, 7, 19, 15, 7, 10, 16, 11, 5, 3, 7, 8, 11, 9,
11, 8, 6, 4, 10, 8, 2, 6, 19, 3, 2, 3, 28, 6, 1, 1, 1, 1, 0,
0)
K <-
2
x <-
structure(c(1.6, 1.6, 1, 2.4, 1, 2.4, 1, 0.7, 0.7, 1.6, 0.7,
1.6, 1, 2.4, 0.7, 1.6, 1, 0.7, 0.7, 1, 0.7, 1.6, 1, 0.7, 0.1,
0.1, 0.7, 0.7, 1, 1, 0.7, 2.4, 1, 0.7, 0.7, 0, 1, 0.1, 1.6, 0,
0.1, 1.6, 1.6, 0, 0.1, 0.7, 0.1, 0.1, 0, 0.1, 0.1, 0, 0.1, 0.1,
1.6, 1, 3.2, 3.2, 2, 4.8, 2, 4.8, 2, 1.4, 1.4, 3.2, 1.4, 3.2,
2, 4.8, 1.4, 3.2, 2, 1.4, 1.4, 2, 1.4, 3.2, 2, 1.4, 0.2, 0.2,
1.4, 1.4, 2, 2, 1.4, 4.8, 2, 1.4, 1.4, 0, 2, 0.2, 3.2, 0, 0.2,
3.2, 3.2, 0, 0.2, 1.4, 0.2, 0.2, 0, 0.2, 0.2, 0, 0.2, 0.2, 3.2,
2), .Dim = c(56L, 2L))
E <-
c(1.4, 8.7, 3, 2.5, 4.3, 2.4, 8.1, 2.3, 2, 6.6, 4.4, 1.8, 1.1,
3.3, 7.8, 4.6, 1.1, 4.2, 5.5, 4.4, 10.5, 22.7, 8.8, 5.6, 15.5,
12.5, 6, 9, 14.4, 10.2, 4.8, 2.9, 7, 8.5, 12.3, 10.1, 12.7, 9.4,
7.2, 5.3, 18.8, 15.8, 4.3, 14.6, 50.7, 8.2, 5.6, 9.3, 88.7, 19.6,
3.4, 3.6, 5.7, 7, 4.2, 1.8)
scaling_factor <-
0.485317494985636
1,863 changes: 1,863 additions & 0 deletions knitr/car-iar-poisson/bym2_islands.data.R

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions knitr/car-iar-poisson/bym2_islands.stan
Original file line number Diff line number Diff line change
@@ -28,10 +28,10 @@ transformed data {
for (i in 1:N_components) {
component_starts[i] = c_offset;
c_offset = c_offset + nodes_per_component[i];
component_ends[i] = c_offset - 1;
component_ends[i] = c_offset - 2;
}
for (i in 1:N_con_comp) {
for (j in component_starts[i]:component_ends[i]) {
for (j in component_starts[i]:component_ends[i]+1) {
scaling_factor[j] = scales[i];
}
}
1,197 changes: 1,197 additions & 0 deletions knitr/car-iar-poisson/bym2_offset_only.data.R

Large diffs are not rendered by default.

1,195 changes: 1,195 additions & 0 deletions knitr/car-iar-poisson/pois_icar.data.R

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions knitr/car-iar-poisson/simple_iar.data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
N <-
56
N_edges <-
132
node1 <-
c(1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 7, 7, 7, 7,
9, 9, 9, 9, 9, 10, 10, 11, 13, 13, 14, 14, 14, 15, 15, 15, 16,
16, 16, 16, 17, 17, 18, 18, 18, 18, 18, 20, 21, 21, 23, 23, 23,
23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 26, 26, 26, 27,
27, 27, 28, 28, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31,
32, 33, 33, 34, 34, 34, 34, 34, 34, 34, 35, 35, 36, 36, 36, 37,
37, 38, 38, 38, 38, 38, 39, 39, 40, 40, 40, 41, 41, 41, 42, 42,
44, 44, 45, 46, 46, 47, 47, 47, 48, 49, 49, 49, 51, 52, 55)
node2 <-
c(5, 9, 11, 19, 7, 10, 6, 12, 18, 20, 28, 11, 12, 13, 19, 8,
10, 13, 16, 17, 11, 17, 19, 23, 29, 16, 22, 12, 17, 19, 31, 32,
35, 25, 29, 50, 17, 21, 22, 29, 19, 29, 20, 28, 33, 55, 56, 55,
29, 50, 29, 34, 36, 37, 39, 27, 30, 31, 44, 47, 48, 55, 56, 26,
29, 29, 42, 43, 31, 32, 55, 33, 45, 34, 43, 50, 38, 42, 44, 45,
56, 32, 35, 46, 47, 35, 45, 56, 39, 40, 42, 43, 51, 52, 54, 37,
46, 37, 39, 41, 41, 46, 42, 44, 49, 51, 54, 40, 41, 41, 49, 52,
46, 49, 53, 43, 51, 48, 49, 56, 47, 53, 48, 49, 53, 49, 52, 53,
54, 54, 54, 56)