楼主: jiayan9939
2089 2

Package ‘rstan’ [推广有奖]

  • 0关注
  • 4粉丝

已卖:617份资源

讲师

80%

还不是VIP/贵宾

-

威望
1
论坛币
48870 个
通用积分
62.9590
学术水平
16 点
热心指数
17 点
信用等级
16 点
经验
6181 点
帖子
204
精华
0
在线时间
126 小时
注册时间
2009-9-11
最后登录
2023-12-13

楼主
jiayan9939 学生认证  发表于 2016-1-22 10:47:41 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
rstan: R Interface to Stan

User-facing R functions are provided by this package to parse, compile, test, estimate, and analyze Stan models by accessing the header-only Stan library provided by the 'StanHeaders' package. The Stan project develops a probabilistic programming language that implements full Bayesian statistical inference via Markov Chain Monte Carlo, rough Bayesian inference via variational approximation, and (optionally penalized) maximum likelihood estimation via optimization. In all three cases, automatic differentiation is used to quickly and accurately evaluate gradients without burdening the user with the need to derive the partial derivatives.

Version:2.9.0
Depends:R (≥ 3.0.2), ggplot2 (≥ 2.0.0)
Imports:methods, stats4, inline, gridExtra (≥ 2.0.0), Rcpp (≥ 0.11.0)
LinkingTo:Rcpp, RcppEigen, BH (≥ 1.58), StanHeaders (≥ 2.9.0)
Suggests:RUnit, RcppEigen, BH (≥ 1.58), StanHeaders (≥ 2.9.0), parallel, KernSmooth, RCurl, loo, rstudioapi, Matrix
Published:2016-01-05
Author:Jiqiang Guo [aut], Daniel Lee [ctb], Krzysztof Sakrejda [ctb], Jonah Gabry [aut], Ben Goodrich [cre, aut], Joel de Guzman [cph] (Boost), Eric Niebler [cph] (Boost), Thomas Heller [cph] (Boost), John Fletcher [cph] (Boost)
Maintainer:Ben Goodrich <benjamin.goodrich at columbia.edu>
License:GPL (≥ 3)
URL:https://groups.google.com/forum/#!forum/stan-users, http://mc-stan.org
NeedsCompilation:yes
Citation:rstan citation info
Materials:NEWS
In views:Bayesian
CRAN checks:rstan results
Downloads:
Reference manual:rstan.pdf
Vignettes:RStan
Package source:rstan_2.9.0.tar.gz


  1. Examples
  2. ## Not run:
  3. ex_model_code <- '
  4. parameters {
  5. real alpha[2,3];
  6. real beta[2];
  7. }
  8. model {
  9. for (i in 1:2) for (j in 1:3)
  10. alpha[i, j] ~ normal(0, 1);
  11. for (i in 1:2)
  12. beta[i] ~ normal(0, 2);
  13. # beta ~ normal(0, 2) // vectorized version
  14. }
  15. '
  16. ## fit the model
  17. fit <- stan(model_code = ex_model_code, chains = 4)
  18. dim(fit)
  19. dimnames(fit)
  20. is.array(fit)
  21. a <- as.array(fit)
  22. m <- as.matrix(fit)
  23. d <- as.data.frame(fit)
  24. ## End(Not run)
复制代码


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:package Pack STAN Age Tan provided library package

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖

总评分: 论坛币 + 20   查看全部评分

<img src="static/image/smiley/comcom/3.gif ...

沙发
Nicolle 学生认证  发表于 2016-1-23 21:53:25
提示: 作者被禁止或删除 内容自动屏蔽

藤椅
Nicolle 学生认证  发表于 2016-1-23 22:06:11
提示: 作者被禁止或删除 内容自动屏蔽

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-23 13:00