For Z parameter
[tex]\left(\begin{array}{c}V_1\\V_2\end{array}\right)\;=\;\left(\begin{array}{cc}Z_{11} & Z_{12}\\Z_{21} & Z_{22}\end{array}\right)\;\left(\begin{array}{c}I_1\\I_2\end{array}\right)[/tex]
[tex]V_1=Z_{11}I_1+Z_{12}I_2[/tex]
[tex]V_2=Z_{21}I_1+Z_{22}I_2[/tex]
[tex]Z_{11}=\left(\frac{V_1}{I_1}\right)_{I_2=0}\;\;,\;\;Z_{12}=\left(\frac{V_1}{I_2}\right)_{I_1=0} \;\;,\;\;Z_{21}=\left(\frac{V_2}{I_1}\right)_{I_2=0}\;\;,\;\;Z_{22}=\left(\frac{V_2}{I_2}\right)_{I_1=0}[/tex]
For I=0 means open circuit.
For Y parameter just (I)=(Y)(V) and make one of the V=0 which is short circuit.
For transformer it is reciprocal circuit so Z12=Z21 and Y12=Y21.
I have not work out the detail, just use this on the transformer and it should work.