Open lukaseamus opened 7 months ago
Hm, ulam doesn't have any convenient interface for loops or detailed manipulation of vectors. I think I could probably get this to work, but it would be a kludge.
I will save the example to the "requested features" file though.
Thank you for the reply @rmcelreath, and for adding this as a feature request. I assume the same is true for my previous question about reparameterisation of likelihood functions?
I have been trying to implement a random walk in ulam. I'd be interested in how to do this in general after reading discussions such as this and this on how to build random walks in Stan and its other R interfaces such as brms.
Here is a MRE for a specific case trying to model the decay parameter k of the exponential decay function $
f(x)=ae^{-kx}
$ as a function of x using random walk:This yields the following error:
Error in get_dist_template(the_dist[1]) : No template for distribution ':'
I also tried specifying the vector
2:N
in thefor
loop asseq(from = 2, to = N, by = 1)
, in which case I get the same error:Error in get_dist_template(the_dist[1]) : No template for distribution 'seq'
Any solutions or pointers would be greatly appreciated!