You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am playing with the data in https://doi.org/10.1371/journal.pcbi.1005833 2 , where different kinds of primates play a “matching pennies” game (guess in which hand is the tasty treat).
I define a handful of possible strategies and want to build a mixture model trying to identify which strategy each primate is mostly likely using.
The two simplest ones (as an example here):
Strategy 1: Simple Bias: the primate just picks the left hand with a fixed rate. E.g. the primate is left handed and tends to pick left 80% of the time.
Strategy 2: Biased Nash: the primate keeps track of how many times the food was in the left hand so far, and picks accordingly (more likely to pick left, the higher the proportion of times food was in the left hand)
I build the models on a single primate and the single strategy models work nicely.
The mixture model fails when using "cmdstanr" as backend, but not when using rstan as backend, or when using cmdstanr directly. The problems only occur when I specify a formula for theta (the probability of picking strategy 1), which I'll need to do when scaling up to multilevel modeling.
Error in rstan::read_stan_csv(out$output_files()) :
csvfiles does not contain any CSV file name
In addition: Warning message:
No chains finished successfully. Unable to retrieve the fit.
What is curious is that the error doesn't happen with rstan backend:
thanks! (I cleaned up the code above from a copy/paste error, I had forgotten commenting away the backend lines for the "the error doesn't happen with rstan backend")
I am playing with the data in https://doi.org/10.1371/journal.pcbi.1005833 2 , where different kinds of primates play a “matching pennies” game (guess in which hand is the tasty treat).
I define a handful of possible strategies and want to build a mixture model trying to identify which strategy each primate is mostly likely using.
The two simplest ones (as an example here):
Strategy 1: Simple Bias: the primate just picks the left hand with a fixed rate. E.g. the primate is left handed and tends to pick left 80% of the time.
Strategy 2: Biased Nash: the primate keeps track of how many times the food was in the left hand so far, and picks accordingly (more likely to pick left, the higher the proportion of times food was in the left hand)
I build the models on a single primate and the single strategy models work nicely.
The mixture model fails when using "cmdstanr" as backend, but not when using rstan as backend, or when using cmdstanr directly. The problems only occur when I specify a formula for theta (the probability of picking strategy 1), which I'll need to do when scaling up to multilevel modeling.
SampleData1.csv
The error I get (both with and without threading) is
What is curious is that the error doesn't happen with rstan backend:
Nor if I fit it directly via cmdstanr
The text was updated successfully, but these errors were encountered: