Skip to content

Regarding factors in mixture3p model #204

Answered by venpopov
yoojchoo asked this question in Q&A
Discussion options

You must be logged in to vote

The number of chains is not related to the number of parameters. Usually the default of 4 is a good choice. In bayesian MCMC models we run multiple chains so that we can be sure that the parameter estimates have converged from different starting values.

The cores argument specifies how many chains you want to run in parallel on your machine. Specifying

options(mc.cores = parallel::detectCores())

tells brms to run as many chains in parallel as you have CPU cores, but less than the number of chains you specify. So if you call the model like this:

options(mc.cores = parallel::detectCores())
flanker_fit <- bmm(
   model = flanker_model,
   data = flanker_data,
   formula = flanker_formula
)

w…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by venpopov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants