楼主: oliyiyi
5674 62

Bayesian Statistics with Stan [推广有奖]

41
oliyiyi 发表于 2019-1-12 11:35:21 |只看作者 |坛友微信交流群
First, everything in R is treated like as an object. We have seen this with functions. Many of the objects that are created within an R session have attributes associated with them. One common attribute associated with an object is its class.

使用道具

42
oliyiyi 发表于 2019-1-12 22:25:08 |只看作者 |坛友微信交流群

Model improvement follows the idealized steps listed on the first page of Bayesian Data Analysis:

  • Set up a full probability model. Define a joint probability distribution for all observable and unobservable quantities in a problem. The model should be consistent with knowledge about the underlying scientific problem and the data collection process.

  • Condition on observed data. Calculate and interpret the appropriate posterior distribution – the conditional probability distribution of the unobserved quantities of ultimate interest, given the observed data.

  • Evaluate the fit of the model and the implications of the resulting posterior distribution. How well does the model fit the data, are the substantive conclusions reasonable, and how sensitive are the results to the modeling assumptions? In response, one can alter or expand the model and repeat.



缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html

使用道具

43
oliyiyi 发表于 2019-1-20 21:49:21 |只看作者 |坛友微信交流群
Be sure that your Stan programs ends in a blank line without any characters including spaces and comments.

In this Stan program, we let theta be a transformation of mu, eta, and tau instead of declaring theta in the parameters block, which allows the sampler will run more efficiently (see detailed explanation). We can prepare the data (which typically is a named list) in R with:

使用道具

44
oliyiyi 发表于 2019-1-20 22:02:26 |只看作者 |坛友微信交流群
  1. schools_dat <- list(J = 8,
  2.                     y = c(28,  8, -3,  7, -1,  1, 18, 12),
  3.                     sigma = c(15, 10, 16, 11,  9, 11, 10, 18))
复制代码

使用道具

45
oliyiyi 发表于 2019-1-21 17:59:11 |只看作者 |坛友微信交流群
13825071791

使用道具

46
oliyiyi 发表于 2019-1-21 23:21:55 |只看作者 |坛友微信交流群
多拉A梦剧场版

使用道具

47
oliyiyi 发表于 2019-2-4 18:04:54 |只看作者 |坛友微信交流群

Be sure that your Stan programs ends in a blank line without any characters including spaces and comments.

使用道具

48
oliyiyi 发表于 2019-2-5 19:34:14 |只看作者 |坛友微信交流群
ssr://MTM5LjE4MC4yMTMuMTg2OjI0NjI5Om9yaWdpbjphZXMtMjU2LWNmYjpwbGFpbjpiMEZ6TW5sMFJUZy8_b2Jmc3BhcmFtPSZwcm90b3BhcmFtPSZyZW1hcmtzPU1UTTVMakU0TUM0eU1UTXVNVGcyJmdyb3VwPVFFbFNRVTVUVTFJ

使用道具

49
oliyiyi 发表于 2019-2-5 19:34:30 |只看作者 |坛友微信交流群
ssr://MTAzLjQ0LjYxLjI0ODo0NjI1OmF1dGhfYWVzMTI4X21kNTphZXMtMjU2LWNmYjpwbGFpbjpNakF3TkRZeU5R

使用道具

50
oliyiyi 发表于 2019-2-5 19:34:50 |只看作者 |坛友微信交流群
ssr://NDMuMjI1LjEwMC44NTo0NjI1OmF1dGhfc2hhMV92NDphZXMtMTI4LWN0cjpwbGFpbjpNakF3TkRZeU5R

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 02:13