I want to perform predictions of a logistic discrete time hazard model, given by:
$\lambda (t)= P(T = t| T \geq t)=\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)}$
How to fit this model is outligned in a previous post: Discrete-Time Event History (Survival) Model in R.
What I do not understand is the "jump" or equivalence of the Survival Analysis World and the Binary Model World.
Let's start with the likelihood for the discrete hazard model:
$L=\prod_{i=1}^{N}[(\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)})^{\sigma_i} (\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)})^{1-\sigma_i} \prod_{j=1}^{t_i-1}(1- \frac{exp(\alpha_{0j} + X_i^T \beta)}{1+ exp(\alpha_{0j} + X_i^T \beta)})]$
where $\sigma_i=1$ if the observation $i$ is censored at $t_i$. (Survival Analysis World)
The well known trick is now to introduce as many binary variables $y_{it}$ as subject $i$ survived. The underlying model is now $P(Y_{it}=1)=\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)}$ and one uses a modified model matrix such that the likelihood of this binary model is:(Binary Model World)
$L=\prod_{i=1}^{N} \prod_{k=1}^{t_i}(\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)})^{y_{it}} (1-\frac{exp(\alpha_{0t} + X_i^T \beta)}{1+ exp(\alpha_{0t} + X_i^T \beta)})^{1-y_{it}} $
This procedure is precisely described in: http://www.statisticalhorizons.com/wp-content/uploads/Allison.SM82.pdf
Now my questions are:
I understand that the likelihood functions are the same, but in the Survival Analysis World I specified a conditional probability, whereas in the Binary Model World I have an unconditional probability. So according to these specifications: $\lambda (t)= P(T = t| T \geq t)=P(Y_{it})$ right?
So to obtain the unconditional prob. of the event happening at time $t$ I could either use $P(T=t)=\lambda (t) \prod_{t=1}^{t_i-1} (1-\lambda (t))$ or simply $P(Y_{it}=1)$ -right? So for the latter approach -$P(Y_{it}=1)$ - I only need 1
predict
statement in R whereas in the first case, I need multiplepredict
statements.
Since these two prediction approaches will yild different prob. I'm stuck on how to align these two approaches.
My final aim is to get the unconditional prob. of the event as outligned in 2.
Many thanks in advance!