Guest User

Untitled

a guest
May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #!/usr/bin/env Rscript
  2.  
  3.  
  4. library(knitr)
  5. pandoc('hw_ch4.rmd', format='latex')
  6.  
  7.  
  8. # TODO: how to NOT print the above commands to the resulting .pdf?
  9. # TODO: how to avoid putting everyting from here on in ""s?
  10. # TODO: how to avoid mentioning the file name above?
  11. # TODO: how to render special symbols, such as tilde, miu, sigma?
  12. # Unicode character (U+3BC) not set up for use with LaTeX.
  13. # See the inputenc package documentation for explanation.
  14.  
  15. # nano hw_ch4.rmd && ./hw_ch4.rmd && evince hw_ch4.pdf
  16.  
  17. "
  18. 4E1. In the model definition below, which line is the likelihood?
  19. A: y_i is the likelihood, based on the expectation and deviation.
  20.  
  21.  
  22. 4M1. For the model definition below, simulate observed heights from the prior (not the posterior).
  23. A:
  24. ```{r}
  25. points <- 10
  26. rnorm(points, mean=rnorm(points, 0, 10), sd=runif(points, 0, 10))
  27. ```
  28.  
  29.  
  30. 4M3. Translate the map model formula below into a mathematical model definition.
  31. A:
  32. ```{r}
  33. flist <- alist(
  34. y tilda dnorm( mu , sigma ),
  35. miu tilda dnorm( 0 , 10 ),
  36. sigma tilda dunif( 0 , 10 )
  37. )
  38. ```
  39. "
Add Comment
Please, Sign In to add comment