model {
r ~ exponential(0.001);
beta ~ normal(0, 100);
for (n in 1:N_uncensored) {
t_uncensored[n] ~ weibull(r, exp(-beta[group_uncensored[n]] / r));
}
for (n in 1:N_censored) {
t2_censored[n] ~ weibull(r, exp(-beta[group_censored[n]] / r) / censor_time[n]);
}
}
Jiqiang,
Ok, that is what I
expected regarding the constraints, but why do we
divide the second argument of the Weibull by the time of censoring? What does this do exactly? Should
t2_censored be understood as an estimated age of death, or estimated time lived
passed the censoring threshold?
Jiqiang,
Ok, that is what I expected regarding the constraints, but why do we divide the second argument of the Weibull by the time of censoring? What does this do exactly? Should t2_censored be understood as an estimated age of death, or estimated time lived passed the censoring threshold?
--
t_uncensored[n] ~ weibull(r, exp(-beta[group_uncensored[n]] / r));
--
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.
To post to this group, send email to stan-...@googlegroups.com.