> On May 24, 2017, at 4:13 PM, Jan Münch <
jan.lenna...@gmail.com> wrote:
>
> Hi Bob,
> hmm maybe I don't use the right terms. By global I mean that I use not just one time series of data but several which I want to use for inferencing the posterior of the model. > model {
> >
> > ......
> > y_t1 ~ binomial(N_channel, probability);
> > y_t2 ~ binomial(N_channel, probability);
> >
> > }
>
> seems not to do this job.
That's fine. It says that both observations y_t1 and y_t2 have the same
number of trials and same success probability.
> So I guess I am using the sampling statement wrong. By writing two times the likelihood. The probability variable just worked fine for a single trace of data
I don't know what "single trace" means either.
> and stayed in the half open interval (0,1] as the stan output told me. And I expect that to be as long as "mu" is element of a simplex, "time_i" "theta_i" all bigger the zero. Hm I guess I am getting you wrong...
Your definition here:
> probabilty[i] = 1 - mu[1] * exp(-theta[1] * time[i])- mu[2]* exp(-theta[2]*time[i]);
If time[i] = 0, then probability[i] = 0, too. This will require your outcomes
to have zero successes (and even then I'm not sure we handle the probability=0
case as it's degenerate).
- Bob
> > To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> To unsubscribe from this group and all its topics, send an email to
stan-users+...@googlegroups.com.
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.