LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! 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>  y = \begin {bmatrix} X_1&
                                      0 \\ 0 & X_2 \\ \end {bmatrix} \begin ...
l.137 }{}
         
! Misplaced alignment tab character &.
<argument>  y = \begin {bmatrix} X_1& 0 \\ 0 &
                                               X_2 \\ \end {bmatrix} \begin ...
l.137 }{}
         
! LaTeX Error: \begin{list} on input line 112 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 112 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> ...ix} + X\beta + \begin {bmatrix} Y_1&
                                                   0 \\ 0 & Y_2 \\ \end {bma...
l.137 }{}
         
! Misplaced alignment tab character &.
<argument> ...eta + \begin {bmatrix} Y_1& 0 \\ 0 &
                                                   Y_2 \\ \end {bmatrix} \be...
l.137 }{}
         
! LaTeX Error: \begin{list} on input line 112 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 112 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>  y = \begin {bmatrix} X_1&
                                      0 \\ 0 & X_2 \\ \end {bmatrix} \begin ...
l.348 }{}
         
! Misplaced alignment tab character &.
<argument>  y = \begin {bmatrix} X_1& 0 \\ 0 &
                                               X_2 \\ \end {bmatrix} \begin ...
l.348 }{}
         
! LaTeX Error: \begin{list} on input line 330 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 330 ended by \end{bmatrix}.

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

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<argument>  \begin {aligned} y = &
                                   W\begin {bmatrix} y_1& 0 \\ 0 & y_2 \\ \e...
l.558 }{}
         
! 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> ...ligned} y = & W\begin {bmatrix} y_1&
                                                   0 \\ 0 & y_2 \\ \end {bma...
l.558 }{}
         
! Misplaced alignment tab character &.
<argument> ... = & W\begin {bmatrix} y_1& 0 \\ 0 &
                                                   y_2 \\ \end {bmatrix} \be...
l.558 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 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> ...nd {bmatrix} + \begin {bmatrix} X_1&
                                                   0 \\ 0 & X_2 \\ \end {bma...
l.558 }{}
         
! Misplaced alignment tab character &.
<argument> ...ix} + \begin {bmatrix} X_1& 0 \\ 0 &
                                                   X_2 \\ \end {bmatrix} \be...
l.558 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 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> ...ix} + X\beta + \begin {bmatrix} Y_1&
                                                   0 \\ 0 & Y_2 \\ \end {bma...
l.558 }{}
         
! Misplaced alignment tab character &.
<argument> ...eta + \begin {bmatrix} Y_1& 0 \\ 0 &
                                                   Y_2 \\ \end {bmatrix} \be...
l.558 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Misplaced alignment tab character &.
<recently read> &
                 
l.558 }{}
         
! 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> ...+ Y\pi + \\ & W\begin {bmatrix} X_1&
                                                   0 \\ 0 & X_2 \\ \end {bma...
l.558 }{}
         
! Misplaced alignment tab character &.
<argument> ...\\ & W\begin {bmatrix} X_1& 0 \\ 0 &
                                                   X_2 \\ \end {bmatrix} \be...
l.558 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 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> ...+ WX\delta + W \begin {bmatrix} Y_1&
                                                   0 \\ 0 & Y_2 \\ \end {bma...
l.558 }{}
         
! Misplaced alignment tab character &.
<argument> ...a + W \begin {bmatrix} Y_1& 0 \\ 0 &
                                                   Y_2 \\ \end {bmatrix} \be...
l.558 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 ended by \end{bmatrix}.

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

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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 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> ... =W \begin {bmatrix} \varepsilon _1&
                                                  0 \\ 0&\varepsilon _2 \\ \...
l.574 }{}
         
! Misplaced alignment tab character &.
<argument> ...gin {bmatrix} \varepsilon _1&0 \\ 0&
                                                  \varepsilon _2 \\ \end {bm...
l.574 }{}
         
! LaTeX Error: \begin{list} on input line 497 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.
 ...                                              
! LaTeX Error: \begin{list} on input line 497 ended by \end{bmatrix}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...