小编Muk*_*ati的帖子

How to specify random coefficients priors in rstanarm?

Suppose I have a following formula for a mixed effects model:

Performance ~ 1 + WorkingHours + Tenure + (1 + WorkingHours + Tenure || JobClass)
Run Code Online (Sandbox Code Playgroud)

then I can specify priors for fixed slopes and fixed intercept as:

prior = normal(c(mu1,mu2), c(sd1,sd2), autoscale = FALSE)
prior_intercept = normal(mean, scale, autoscale = FALSE)
Run Code Online (Sandbox Code Playgroud)

But how do I specify the priors for random slopes and intercept using

prior_covariance = decov(regularization, concentration, shape, scale)
Run Code Online (Sandbox Code Playgroud)

(or)

lkj(regularization, scale, df)
Run Code Online (Sandbox Code Playgroud)

if I know the variance …

regression r bayesian rstanarm

6
推荐指数
1
解决办法
204
查看次数

标签 统计

bayesian ×1

r ×1

regression ×1

rstanarm ×1