With R to draw a random integer between 1 and 10 I can run sample(1:10, 1)
. What is the equivalent in Stan?
Thanks!
With R to draw a random integer between 1 and 10 I can run sample(1:10, 1)
. What is the equivalent in Stan?
Thanks!
categorical_rng(rep_vector(inv(10), 10));