How would I recreate this format with equation/align/pmatrix?
\begin{equation}
\begin{align}
P(t&=11 \\ t&=13 |sex&=1 \\ education &=1 )
\end{align} = \begin{pmatrix}
q_{11t} & q_{12t} & 0 & 0 & q_{15t} \\
q_{21t} & q_{22t} & q_{23t} & 0 & q_{25t} \\
0 & q_{32t} & q_{33t} & q_{34t} & q_{35t} \\
0 & 0 & q_{43t} & q_{44t} & q_{45t} \\
0 & 0 & 0 & 0 & 0
\end{pmatrix}
\label{fig:transition-intensity-matrix}
\end{equation}
The content is not important, I'm just trying to get the layout! I have got this far, but I am also recieving the error:
"Package amsmath Error: Erroneous nesting of equation structures;(amsmath) trying to recover with `aligned'. \end{align}"
Any advice? Thank you!
Best Answer
First version: I have used
spalign
package to have the vertical rule in the matrix. There are so many ways to create your image. I've inserted the fonts from the image that look like Times New Roman to me.Second version: Peraphs this MWE it is more closer to the original image.