I'd like to ask if somebody could help me parametrize $5x5$ doubly stochastic matrix, say $P$, i.e., a square matrix of nonnegative real numbers, each of whose rows and columns sums to 1. (I need to estimate matrix P and plan to use an unconstrained estimation procedure. Hence, I try to reparametrize P such that it accounts for the full set of constraints.)
I tried to represent an element $p_{ij}$ of P, where $i=1:4$, $j=1:4$, as: \begin{equation} p_{ij} = \frac{\exp(\alpha_{ij})}{1 + \sum_{k=1}^4 \exp(\alpha_{ik}) + \sum_{k=1}^4 \exp(\alpha_{kj}) - \exp(\alpha_{ij})} \end{equation} an element $p_{i5}$ of $P$, where $i=1:4$, as: \begin{equation} p_{i5} = 1 - \sum_{k=1}^4 \exp(\alpha_{ik}), \end{equation} and an element $p_{5j}$ of $P$, where $j=1:5$, as: \begin{equation} p_{5j} = 1 - \sum_{k=1}^4 \exp(\alpha_{kj}), \end{equation} where $\alpha_{11}\in R, \alpha_{12}\in R,..,\alpha_{44}\in R$. These 16 parameters could be estimated by unconstrained MLE. Unfortunately, the above parametrization doesn't guarantee $p_{55}$ being positive and unconstrained optimization doesn't apply there. Thus, I'm looking for an alternative way of parametric matrix P.