Guest User

Untitled

a guest
Oct 15th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. data {
  2. int<lower=1> n_days;
  3. }
  4. parameters {
  5. real<lower=0, upper=1> mu[n_days];
  6. }
  7. model {
  8. mu[1] ~ normal(0.5,0.00001);
  9. for (i in 2:(n_days))
  10. mu[i] ~ normal(mu[i - 1], 0.005);
  11.  
  12. mu[n_days] ~ normal(0.6,0.00001);
  13. }
  14.  
  15. data {
  16. int<lower=1> n_days;
  17. }
  18. parameters {
  19. real<lower=0, upper=1> mu[n_days];
  20. }
  21. model {
  22. mu[1] ~ normal(0.5,0.00001);
  23. for (i in 2:(n_days - 1))
  24. mu[i] ~ normal(mu[i - 1], 0.005);
  25.  
  26. mu[n_days] ~ normal(0.6,0.00001);
  27. }
Add Comment
Please, Sign In to add comment