Skip to content

Commit b378044

Browse files
committed
A few edits
1 parent 066f2d6 commit b378044

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

knitr/planetary_motion/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Data for the plots in this case study are stored in RDS files in
2+
`saved_fit` because it takes a long time to generate it. To
3+
recreate the data, uncomment the appropriate code in `planetary_motion.rmd`.

knitr/planetary_motion/planetary_motion.rmd

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ In our presentation, we try to distinguish generalizable methods, problem-specif
4343

4444
### R setup {-#setup}
4545

46-
```{r include=FALSE}
47-
# Adjust to your setting
48-
.libPaths("~/Rlib/")
49-
# setwd("~/Code/example-models/knitr/planetary_motion")
50-
```
51-
5246
```{r message = FALSE}
5347
library(cmdstanr)
5448
library(posterior)
@@ -66,11 +60,6 @@ bayesplot::color_scheme_set("viridisC")
6660
set.seed(1954)
6761
```
6862

69-
```{r include=FALSE}
70-
# Adjust to your setting
71-
set_cmdstan_path("~/Rlib/cmdstan/")
72-
```
73-
7463
All the requisite code to run this notebook can be found online, in the [planetary motion github repository](https://github.com/stan-dev/example-models/tree/case-study/planet/knitr/planetary_motion).
7564

7665
## Building the model {-#sec2}
@@ -134,8 +123,7 @@ plot
134123
```
135124

136125
## Fitting a simple model and diagnosing inference {-#sec3}
137-
138-
A first attempt at fitting the complete model (`planetary_motion_star.stan`) fails spectacularly: the chains do not converge and take a long time to run.
126+
A first attempt at fitting the complete model ([planetary_motion_star.stan](https://github.com/stan-dev/example-models/blob/master/knitr/planetary_motion/model/planetary_motion_star.stan)) fails spectacularly: the chains do not converge and take a long time to run.
139127
This is an invitation to start with a simpler model.
140128
A useful simplification is more manageable but still exhibits the challenges we encounter with the complete model.
141129
The hope is that a fix in this simple context translates into a fix in a more sophisticated setting.

knitr/planetary_motion/ref.bib

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,3 @@ @article{Yao:2018
5656
volume = {13},
5757
pages = {917 - 1003},
5858
year = {2018}}
59-
60-

0 commit comments

Comments
 (0)