LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Undefined control sequence.
<argument> z_{i}=\underset 
                           {t\in \{1,...,J\}}{\text {argmax} }\text { }z_{ti...
l.563 ... = (u_{1i},u_{2i},...,u_{(J-1)i})^{T},}{}
                                                  
! Undefined control sequence.
<argument> ...=\underset {t\in \{1,...,J\}}{\text 
                                                  {argmax} }\text { }z_{ti}^...
l.563 ... = (u_{1i},u_{2i},...,u_{(J-1)i})^{T},}{}
                                                  
! Undefined control sequence.
<argument> ... \{1,...,J\}}{\text {argmax} }\text 
                                                  { }z_{ti}^{*}, \qquad u_{i...
l.563 ... = (u_{1i},u_{2i},...,u_{(J-1)i})^{T},}{}
                                                  
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{list} on input line 557 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \Sigma = \begin {bmatrix} 1 &
                                         \sigma _{12}& \sigma _{13} & ... & ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...= \begin {bmatrix} 1 & \sigma _{12}&
                                                   \sigma _{13} & ... & \sig...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...ix} 1 & \sigma _{12}& \sigma _{13} &
                                                   ... & \sigma _{1(J-1)}\\ ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...& \sigma _{12}& \sigma _{13} & ... &
                                                   \sigma _{1(J-1)}\\ \sigma...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ... & \sigma _{1(J-1)}\\ \sigma _{12} &
                                                   \sigma _{2}^2 & \sigma _{...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...1)}\\ \sigma _{12} & \sigma _{2}^2 &
                                                   \sigma _{23} & ... & \sig...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...12} & \sigma _{2}^2 & \sigma _{23} &
                                                   ... & \sigma _{2(J-1)}\\ ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...\sigma _{2}^2 & \sigma _{23} & ... &
                                                   \sigma _{2(J-1)}\\ \sigma...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ... & \sigma _{2(J-1)}\\ \sigma _{13} &
                                                   \sigma _{23} & \sigma _{3...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...-1)}\\ \sigma _{13} & \sigma _{23} &
                                                   \sigma _{3}^2 & ... & \si...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...13} & \sigma _{23} & \sigma _{3}^2 &
                                                   ... & \sigma _{3(J-1)}\\ ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...\sigma _{23} & \sigma _{3}^2 & ... &
                                                   \sigma _{3(J-1)}\\ \vdots...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ... & ... & \sigma _{3(J-1)}\\ \vdots &
                                                   \vdots & \vdots & \ddots ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...\sigma _{3(J-1)}\\ \vdots & \vdots &
                                                   \vdots & \ddots & \vdots ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...3(J-1)}\\ \vdots & \vdots & \vdots &
                                                   \ddots & \vdots \\ \sigma...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ... \vdots & \vdots & \vdots & \ddots &
                                                   \vdots \\ \sigma _{1(J-1)...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...ddots & \vdots \\ \sigma _{1(J-1)} &
                                                   \sigma _{2(J-1)} & \sigma...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...sigma _{1(J-1)} & \sigma _{2(J-1)} &
                                                   \sigma _{3(J-1)} & ... & ...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ...sigma _{2(J-1)} & \sigma _{3(J-1)} &
                                                   ... & \sigma _{J-1}^2\\ \...
l.572                 \end{bmatrix}.}{}
                                       
! Misplaced alignment tab character &.
<argument> ..._{2(J-1)} & \sigma _{3(J-1)} & ... &
                                                   \sigma _{J-1}^2\\ \end {b...
l.572                 \end{bmatrix}.}{}
                                       
! LaTeX Error: \begin{list} on input line 557 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ...i}, \varepsilon _{1i}\right ) \text 
                                                  {, i.i.d.} 
l.614 }{}
         
! Undefined control sequence.
<argument>  y_{i} = \begin {cases} y_{1i}\text 
                                               {, if }z_{i} = 1\\ y_{0i}\tex...
l.633 }{}
         
! Undefined control sequence.
<argument> ...text {, if }z_{i} = 1\\ y_{0i}\text 
                                                  {, if }z_{i} = 2\\ \text {...
l.633 }{}
         
! Undefined control sequence.
<recently read> \text 
                      
l.633 }{}
         
! Undefined control sequence.
<argument> ...t_{1}t_{2}} = \begin {cases} 1\text 
                                                  {, if } t_{1}=j\\ -1\text ...
l.692 }{}
         
! Undefined control sequence.
<argument> ...s} 1\text {, if } t_{1}=j\\ -1\text 
                                                  {, if } t_{1}<j \text { an...
l.692 }{}
         
! Undefined control sequence.
<argument> ...}=j\\ -1\text {, if } t_{1}<j \text 
                                                  { and } t_{1}=t_{2}\\ -1\t...
l.692 }{}
         
! Undefined control sequence.
<argument> ...\text { and } t_{1}=t_{2}\\ -1\text 
                                                  {, if } t_{1}>j \text { an...
l.692 }{}
         
! Undefined control sequence.
<argument> ...{2}\\ -1\text {, if } t_{1}>j \text 
                                                  { and } t_{1}=t_{2} + 1\\ ...
l.692 }{}
         
! Undefined control sequence.
<argument> ...xt { and } t_{1}=t_{2} + 1\\ 0\text 
                                                  {, otherwise} \end {cases}...
l.692 }{}
         
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \Sigma = \begin {bmatrix} 1 &
                                         \rho _{12} & \rho _{13} & ... & \rh...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... = \begin {bmatrix} 1 & \rho _{12} &
                                                   \rho _{13} & ... & \rho _...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...atrix} 1 & \rho _{12} & \rho _{13} &
                                                   ... & \rho _{1J}\\ \rho _...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... 1 & \rho _{12} & \rho _{13} & ... &
                                                   \rho _{1J}\\ \rho _{12} &...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...3} & ... & \rho _{1J}\\ \rho _{12} &
                                                   1 & \rho _{23} & ... & \r...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... ... & \rho _{1J}\\ \rho _{12} & 1 &
                                                   \rho _{23} & ... & \rho _...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...{1J}\\ \rho _{12} & 1 & \rho _{23} &
                                                   ... & \rho _{2J}\\ \rho _...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... \rho _{12} & 1 & \rho _{23} & ... &
                                                   \rho _{2J}\\ \rho _{13} &...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...3} & ... & \rho _{2J}\\ \rho _{13} &
                                                   \rho _{23} & 1 & ... & \r...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...ho _{2J}\\ \rho _{13} & \rho _{23} &
                                                   1 & ... & \rho _{3J}\\ \v...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...{2J}\\ \rho _{13} & \rho _{23} & 1 &
                                                   ... & \rho _{3J}\\ \vdots...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... \rho _{13} & \rho _{23} & 1 & ... &
                                                   \rho _{3J}\\ \vdots & \vd...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...3} & 1 & ... & \rho _{3J}\\ \vdots &
                                                   \vdots & \vdots & \ddots ...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...... & \rho _{3J}\\ \vdots & \vdots &
                                                   \vdots & \ddots & \vdots ...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...o _{3J}\\ \vdots & \vdots & \vdots &
                                                   \ddots & \vdots \\ \rho _...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... \vdots & \vdots & \vdots & \ddots &
                                                   \vdots \\ \rho _{1J} & \r...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...ts & \ddots & \vdots \\ \rho _{1J} &
                                                   \rho _{2J} & \rho _{3J} &...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ... \vdots \\ \rho _{1J} & \rho _{2J} &
                                                   \rho _{3J} & ... & 1\\ \e...
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...ho _{1J} & \rho _{2J} & \rho _{3J} &
                                                   ... & 1\\ \end {bmatrix},
l.1239                \end{bmatrix},}{}
                                       
! Misplaced alignment tab character &.
<argument> ...J} & \rho _{2J} & \rho _{3J} & ... &
                                                   1\\ \end {bmatrix},
l.1239                \end{bmatrix},}{}
                                       
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> z_{ji}=\begin {cases} 0\text 
                                        {, if }z_{ji}^{*}\leq c_{j1}\\ 1\tex...
l.1246                    \end{cases},}{}
                                         
! Undefined control sequence.
<argument> ... if }z_{ji}^{*}\leq c_{j1}\\ 1\text 
                                                  {, if }c_{j1}<z_{ji}^{*}\l...
l.1246                    \end{cases},}{}
                                         
! Undefined control sequence.
<argument> ...{j1}<z_{ji}^{*}\leq c_{j2}\\ 2\text 
                                                  {, if }c_{j2}<z_{ji}^{*}\l...
l.1246                    \end{cases},}{}
                                         
! Undefined control sequence.
<argument> ...}\leq c_{j3}\\ \vdots \\ m_{j}\text 
                                                  {, if }z_{ji}^{*}>c_{jm_{j...
l.1246                    \end{cases},}{}
                                         
! Undefined control sequence.
<argument> ...1},t_{2}),\max (t_{1}t_{2})}= \text 
                                                  {corr}\left (u_{it_{1}}, u...
l.1272 ...r}\left(u_{it_{1}}, u_{it_{1}}\right)}{}
                                                  .
! Undefined control sequence.
<argument> \text 
                 {groups} = \begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1310 \end{bmatrix}.}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \text {groups} = \begin {bmatrix} 1 &
                                                 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1310 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...oups} = \begin {bmatrix} 1 & 2\\ 1 &
                                                   1\\ 1 & 0\\ 0 & -1 \end {...
l.1310 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...\begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 &
                                                   0\\ 0 & -1 \end {bmatrix}.
l.1310 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 &
                                                   -1 \end {bmatrix}.
l.1310 \end{bmatrix}.}{}
                        
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> y_{i} = \begin {cases} y_{i}^{*}\text 
                                                 {, if }z_{1i}=1\text { and ...
l.1345 \end{cases},}{}
                      
! Undefined control sequence.
<argument> ...y_{i}^{*}\text {, if }z_{1i}=1\text 
                                                  { and }z_{2i}\geq 1\\ \tex...
l.1345 \end{cases},}{}
                      
! Undefined control sequence.
<recently read> \text 
                      
l.1345 \end{cases},}{}
                      
! Undefined control sequence.
<argument> \text 
                 {groups} = \begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1376 \end{bmatrix}.}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \text {groups} = \begin {bmatrix} 1 &
                                                 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1376 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...oups} = \begin {bmatrix} 1 & 2\\ 1 &
                                                   1\\ 1 & 0\\ 0 & -1 \end {...
l.1376 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...\begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 &
                                                   0\\ 0 & -1 \end {bmatrix}...
l.1376 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 &
                                                   -1 \end {bmatrix}, \text ...
l.1376 \end{bmatrix}.}{}
                        
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ... & 0\\ 0 & -1 \end {bmatrix}, \text 
                                                  {groups2} = \begin {bmatri...
l.1376 \end{bmatrix}.}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> y_{i} = \begin {cases} y_{0i}^{*}\text 
                                                  {, if }z_{1i}=1\text { and...
l.1394 \end{cases}.}{}
                      
! Undefined control sequence.
<argument> ..._{0i}^{*}\text {, if }z_{1i}=1\text 
                                                  { and }z_{2i} = 1\\ y_{1i}...
l.1394 \end{cases}.}{}
                      
! Undefined control sequence.
<argument> ...{ and }z_{2i} = 1\\ y_{1i}^{*}\text 
                                                  {, if }z_{1i}=1\text { and...
l.1394 \end{cases}.}{}
                      
! Undefined control sequence.
<argument> ..._{1i}^{*}\text {, if }z_{1i}=1\text 
                                                  { and }z_{2i} = 2\\ \text ...
l.1394 \end{cases}.}{}
                      
! Undefined control sequence.
<recently read> \text 
                      
l.1394 \end{cases}.}{}
                      
! Undefined control sequence.
<argument> \text 
                 {groups} = \begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1411 \end{bmatrix}.}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \text {groups} = \begin {bmatrix} 1 &
                                                 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1411 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...oups} = \begin {bmatrix} 1 & 2\\ 1 &
                                                   1\\ 1 & 0\\ 0 & -1 \end {...
l.1411 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...\begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 &
                                                   0\\ 0 & -1 \end {bmatrix}...
l.1411 \end{bmatrix}.}{}
                        
! Misplaced alignment tab character &.
<argument> ...bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 &
                                                   -1 \end {bmatrix}, \text ...
l.1411 \end{bmatrix}.}{}
                        
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ... & 0\\ 0 & -1 \end {bmatrix}, \text 
                                                  {groups2} = \begin {bmatri...
l.1411 \end{bmatrix}.}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ...h} = \begin {cases} y_{i}^{h*}\text 
                                                  {, if }z_{1i}=1\\ \text {u...
l.1433 \end{cases}.}{}
                      
! Undefined control sequence.
<recently read> \text 
                      
l.1433 \end{cases}.}{}
                      
! Undefined control sequence.
<argument> \text 
                 {groups} = \begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1451 \end{bmatrix},}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> \text {groups} = \begin {bmatrix} 1 &
                                                 2\\ 1 & 1\\ 1 & 0\\ 0 & -1 ...
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...oups} = \begin {bmatrix} 1 & 2\\ 1 &
                                                   1\\ 1 & 0\\ 0 & -1 \end {...
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...\begin {bmatrix} 1 & 2\\ 1 & 1\\ 1 &
                                                   0\\ 0 & -1 \end {bmatrix}...
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...bmatrix} 1 & 2\\ 1 & 1\\ 1 & 0\\ 0 &
                                                   -1 \end {bmatrix}, \text ...
l.1451 \end{bmatrix},}{}
                        
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ... & 0\\ 0 & -1 \end {bmatrix}, \text 
                                                  {groups2} = \begin {bmatri...
l.1451 \end{bmatrix},}{}
                        
! LaTeX Error: Environment bmatrix undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument> ...ext {groups2} = \begin {bmatrix} 1 &
                                                   0\\ 0 & 0\\ -1 & 0\\ -1 &...
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...ups2} = \begin {bmatrix} 1 & 0\\ 0 &
                                                   0\\ -1 & 0\\ -1 & -1 \end...
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...begin {bmatrix} 1 & 0\\ 0 & 0\\ -1 &
                                                   0\\ -1 & -1 \end {bmatrix},
l.1451 \end{bmatrix},}{}
                        
! Misplaced alignment tab character &.
<argument> ...atrix} 1 & 0\\ 0 & 0\\ -1 & 0\\ -1 &
                                                   -1 \end {bmatrix},
l.1451 \end{bmatrix},}{}
                        
! LaTeX Error: \begin{list} on input line 1226 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Undefined control sequence.
<argument> ... _{ji}^{(1)}= \begin {cases} 0\text 
                                                  {, if }z_{ji} = 0\\ -\frac...
l.1498 }{}
          
! Undefined control sequence.
<argument> ...al P_{i}^{*}}{\partial a_{ji}}\text 
                                                  {, otherwise } \end {cases...
l.1498 }{}
          
! Undefined control sequence.
<argument> ... _{ji}^{(2)}= \begin {cases} 0\text 
                                                  {, if }z_{ji} = m_{j}\\ -\...
l.1498 }{}
          
! Undefined control sequence.
<argument> ...al P_{i}^{*}}{\partial b_{ji}}\text 
                                                  {, otherwise } \end {cases}, 
l.1498 }{}
          
! Undefined control sequence.
<argument>  a_{ji}= \begin {cases} -\infty \text 
                                                 {, if }z_{ji} = 0\\ \frac {...
l.1515 }{}
          
! Undefined control sequence.
<argument> ...{ji}\gamma _{j}}{\sigma _{ji}}\text 
                                                  {, otherwise } \end {cases...
l.1515 }{}
          
! Undefined control sequence.
<argument> ...b_{ji}= \begin {cases} \infty \text 
                                                  {, if }z_{ji} = m_{j}\\ \f...
l.1515 }{}
          
! Undefined control sequence.
<argument> ...{ji}\gamma _{j}}{\sigma _{ji}}\text 
                                                  {, otherwise } \end {cases}. 
l.1515 }{}