I am reading Tutz & Schmid "Modeling Discrete Time-to-Event Data" (2016) chapter 10 Multiple Spell Analysis section 10.1.1 Estimation. On p. 215 the closed form of the total likelihood is provided: $$ L = \Pi_{i=1}^n \Pi_{k=1}^{k_i} \Pi_{r=1}^m \left[ \lambda_{y_k}^{(k)}(t_{ik}\vert H_{k-1}, x_{ik}) \right]^{\delta_{ikr}} \Pi_{s=t_{i,k-1}+1}^{t_k-1} (1-\lambda^{(k)}(s\vert H_{k-1}, x_{ik})) P(x_k \vert H_{k-1}) ^{\epsilon_{ik}} $$ I think it has some problems with indices/subscripts and parentheses. A version I would find more logical is the following: $$ L = \Pi_{i=1}^n \Pi_{k=1}^{k_i} \Pi_{r=1}^m \left[ \lambda_\color{red}{r}^{(k)}(t_{ik}\vert H_{\color{red}{i}k-1}, x_{ik}) \right]^{\delta_{ikr}} \Pi_{s=t_{i,k-1}+1}^{t_{\color{red}{i}k-1}} \left[ (1-\lambda^{(k)}(s\vert H_{\color{red}{i}k-1}, x_{ik})) P(x_{\color{red}{i}k} \vert H_{\color{red}{i}k-1}) \right]^{\epsilon_{ik}} $$ Do my corrections make sense? Did I miss anything?
P.S. How do I color \left[ and \right] that I added in the second part?
And how do I color the word color in the last sentence?
