bayes2018 | My notes on Bayesian statistics in Stan , etc | Data Visualization library
kandi X-RAY | bayes2018 Summary
kandi X-RAY | bayes2018 Summary
My notes on Bayesian statistics in Stan, etc (2018-)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bayes2018
bayes2018 Key Features
bayes2018 Examples and Code Snippets
Community Discussions
Trending Discussions on bayes2018
QUESTION
I am trying to fit a multinomial logistic regression model using rjags
for the outcome is a categorical (nominal) variable (Outcome) with 3 levels, and the explanatory variables are Age (continuous) and Group (categorical with 3 levels). In doing so, I would like to obtain the Posterior means and 95% quantile-based regions for Age and Group.
I am not really great at for loop
which I think is the reason why my written code for the model isn't working working properly.
My beta priors follow a Normal distribution, βj ∼ Normal(0,100) for j ∈ {0, 1, 2}.
Reproducible R code
...ANSWER
Answered 2020-Aug-17 at 16:20I will include an approach to your issue. I have taken the same priors you defined for coefficients. I only need to mention that as you have a factor in Group
I will use one of its levels as reference (in this case pink
) so its effect will be taken into account by the constant in the model. Next the code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bayes2018
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page