楼主: oliyiyi
7140 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
拉您入交流群
GMT+8, 2025-12-23 19:34