> On Apr 20, 2016, at 10:42 PM, huiying <
hyc.t...@gmail.com> wrote:
>
> Dear all,
>
> Thanks very much for taking time to address all my questions.
>
> I am reproducing the results, with hope to further improve the model. Before I could do that, I obviously have lots to learn. Yes, I am working on the same model and same data as it was originally applied to.
>
> So my understanding from the discussion is that the definition for the parameters is the main issue, and I will work on it next.
>
> I have to admit that I'm not very certain with the command at the last part of the model
Where did it come from?
> Pr_S <- binomial_coefficient_log(est_in, S)
> + multiply_log(S, est_is[1])
> + multiply_log((est_in - S), est_is[2]);
>
> increment_log_prob((Pr_S));
> increment_log_prob(-log(W));
>
> Pr_D <- binomial_coefficient_log(est_in, D)
> + multiply_log(D, est_if[1])
> + multiply_log((est_in - D), est_if[2]);
>
> increment_log_prob((Pr_D));
> increment_log_prob(-log(W));
>
> I tried to google for binomial_coefficient_log
The index in the manual includes all functions and their
entries have definitions.
> but had limited search results on forum/mailing list. I am going to ask the person who did this previously, but here is what I think it is which may not be correct,
>
> Pr_D is the probability of death, and will take the value est_in which is estimated from posterior distribution of pi from the same model.
>
> binomial_coefficient_log is used in view of unknown est_in and also non-informative/weak prior of est_if (risk of death), defined as having a beta distribution (0.5, 0.5) which is rather random?
It's probably someone trying to write out all the of
terms in a density like the binomial.
Is "rather random" a meta-comment?
> I'm sorry if this doesn't make sense.
>
> Could I have used the number of death, D ~ binomial(est_in, est_if)?
binomial requires a count as first argument and probaiblity in (0, 1)
as the second one. It's just the usual binomial.
>
> theta gets a lower bound 0.0000015625 based on the knowledge that 20 cases were observed in the population of size 12.8e6.
You should just remove that lower bound.
> theta0 takes a prior beta(0.5, 1129.5) based on the knowledge that the 0 out of 1129 samples was found positive
This isn't the same as the 20 out of 1e7?
But if you started from a uniform beta(1, 1), the posterior
after 0 out of 1129 samples would be beta(1, 1130).
If that study's the same as this one, you can either combine
the data, or start with that posterior if nothing else is going on.
> in a previous study and alpha for beta distribution has to be >0.
beta(1, 1) is uniform; beta(0.5, 0.5) is very U-shaped, with density
going to infinity as variate approaches 0 or 1.
> It is also set to bound between 0 and 1 because it is a parameter for baseline cumulative incidence, which is a proportion.
Yes, you need that constraint.
> if prior for pi is known to be beta(0.5, 193.5), can I incorporate this into the model when at the same time, pi is defined as theta0 + theta*x1?
You should think about priors on theta0 and theta rather
than a function of them.
- Bob