【问题标题】:How to specify "strict" priors for fixed coefficients in rstanarm?如何为 rstanarm 中的固定系数指定“严格”先验?
【发布时间】:2020-05-28 14:04:11
【问题描述】:

如何为平均值在 1e-05 范围内、标准差 (sd) 在 1e-06 范围内的系数提供先验分布?

对于 rstanarm 中如此高精度 (sd

1) 学生家庭

2) 分层收缩族

3) 拉普拉斯家族

4) 狄利克雷家族

5) 其他

我尝试过使用prior = normal(location = 1e-05, scale = 1e-06, autoscale = FALSE),但是采样需要很多时间。

【问题讨论】:

    标签: r regression bayesian rstanarm


    【解决方案1】:

    我认为prior = normal(location = 1e-05, scale = 1e-06, autoscale = FALSE) 是您最好的选择。采样花费大量时间这一事实并不表明它产生的抽签有任何问题。但我会将结果乘以 100 万或将预测变量除以 100 万,这样prior = normal(location = .1, scale = 1, autoscale = FALSE) 才合理。

    【讨论】:

    • 感谢您的建议,重新缩放显着缩短了采样时间。此外,prior_PD = TRUE 和 QR = TRUE 在 stan_lmer(...) 调用中是什么意思?它如何影响计算?
    • stan_lmer 的两个(实际全部)参数都是documented
    猜你喜欢
    • 1970-01-01
    • 2021-04-17
    • 2013-02-23
    • 1970-01-01
    • 2018-08-09
    • 2020-10-12
    • 1970-01-01
    • 1970-01-01
    • 2019-07-23
    相关资源
    最近更新 更多