Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env Rscript
- library(knitr)
- pandoc('hw_ch4.rmd', format='latex')
- # TODO: how to NOT print the above commands to the resulting .pdf?
- # TODO: how to avoid putting everyting from here on in ""s?
- # TODO: how to avoid mentioning the file name above?
- # TODO: how to render special symbols, such as tilde, miu, sigma?
- # Unicode character (U+3BC) not set up for use with LaTeX.
- # See the inputenc package documentation for explanation.
- # nano hw_ch4.rmd && ./hw_ch4.rmd && evince hw_ch4.pdf
- "
- 4E1. In the model definition below, which line is the likelihood?
- A: y_i is the likelihood, based on the expectation and deviation.
- 4M1. For the model definition below, simulate observed heights from the prior (not the posterior).
- A:
- ```{r}
- points <- 10
- rnorm(points, mean=rnorm(points, 0, 10), sd=runif(points, 0, 10))
- ```
- 4M3. Translate the map model formula below into a mathematical model definition.
- A:
- ```{r}
- flist <- alist(
- y tilda dnorm( mu , sigma ),
- miu tilda dnorm( 0 , 10 ),
- sigma tilda dunif( 0 , 10 )
- )
- ```
- "
Add Comment
Please, Sign In to add comment