Cross Validated Asked by MarG on August 23, 2020

I am using the function `stan_glm()`

in R. I am using 4 predictor variables and I want to specify a univariate independent prior for each regression parameter. Right now I am trying to include each prior by placing them in a list through the following code snippet:

```
poisson.model.stan <- stan_glm(Count ~ v1 + v2 + v3 + v4,
family = poisson(link=log),
data=data,
chains = 4, cores = 5, seed = 55, iter = 100000,
offset=log(exposure), prior_intercept = normal(-2,1),
prior = c(normal(-0.2, 0.05),
normal(0.1, 0.05),
normal(0.3, 0.05),
normal(0.04, 0.05)))
```

However, I am not sure whether this is the correct way of specifying my priors.

To summarize, how do I specify several independent priors in the `stan_glm()`

function?

1 Asked on December 13, 2020 by svexo

1 Asked on December 12, 2020 by aakash-bashyal

0 Asked on December 12, 2020 by samme-galanakis

1 Asked on December 11, 2020 by sue-doh-nimh

0 Asked on December 11, 2020 by luchonacho

1 Asked on December 11, 2020 by rumtscho

assumptions exchangeability permutation test random variable terminology

1 Asked on December 10, 2020 by quant_dev

1 Asked on December 10, 2020

asymptotics convergence estimation expected value normality assumption

1 Asked on December 10, 2020 by st4co4

2 Asked on December 10, 2020 by yaynikkiprograms

0 Asked on December 10, 2020 by statboy_41

data transformation generalized linear model interpretation link function sas

0 Asked on December 9, 2020 by aite97

0 Asked on December 9, 2020 by pinocchio

machine learning mean non independent standard deviation standard error

1 Asked on December 9, 2020 by andrew-kirk

0 Asked on December 9, 2020 by s-ramagokula-krishnan

0 Asked on December 9, 2020 by johanna

backpropagation gradient descent neural networks regression sgd

0 Asked on December 9, 2020 by ayberk-yavuz

1 Asked on December 9, 2020 by roromario

Get help from others!

Recent Questions

Recent Answers

- Lex on Does Google Analytics track 404 page responses as valid page views?
- haakon.io on Why fry rice before boiling?
- Jon Church on Why fry rice before boiling?
- Peter Machado on Why fry rice before boiling?
- Joshua Engel on Why fry rice before boiling?

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir