Can anyone please suggest how I can fix the lack of leading zeros in formatted latex table?
I run Westerlund cointegration with the commands;
xtwest GDP LE PG GFCA Unemployment, constant trend lags(1) leads(1) lrwindow(2) bootstrap(100)
matrix results = ( round(r(gt_z), 0.01), round(r(gt_pval), 0.001)) \ ( round(r(ga_z), 0.01), round(r(ga_pval), 0.001)) \ ( round(r(pt_z), 0.01), round(r(pt_pval), 0.001)) \ ( round(r(pa_z), 0.01), round(r(pa_pval), 0.001))
matrix rownames results = Gt Ga Pt Pa
matrix colnames results = Z_value P_value
esttab matrix(results) using westerlundtesttrend.tex, replace title(Westerlund ECM Panel Cointegration Test Results With Intercept and Trend \label{westerlundtrend}) coefl(Z-value "Z-value" P-value "P-value") collabels("Z-value" "P-value") nodep nomtitle nonumber unstack
And it generates the table below with missing leading zeros in the p-values. Is there a way I can fix the lack of leading zeros in the p-values in both the formatted latex table and raw results?
\begin{tabular}{l*{2}{c}}
\hline\hline
& Z-value& P-value\\
\hline
Gt & 1.2& .885\\
Ga & 2.44& .993\\
Pt & 2.16& .984\\
Pa & 2.07& .981\\
\hline\hline
\end{tabular}
\end{table}
Thanks
I run Westerlund cointegration with the commands;
xtwest GDP LE PG GFCA Unemployment, constant trend lags(1) leads(1) lrwindow(2) bootstrap(100)
matrix results = ( round(r(gt_z), 0.01), round(r(gt_pval), 0.001)) \ ( round(r(ga_z), 0.01), round(r(ga_pval), 0.001)) \ ( round(r(pt_z), 0.01), round(r(pt_pval), 0.001)) \ ( round(r(pa_z), 0.01), round(r(pa_pval), 0.001))
matrix rownames results = Gt Ga Pt Pa
matrix colnames results = Z_value P_value
esttab matrix(results) using westerlundtesttrend.tex, replace title(Westerlund ECM Panel Cointegration Test Results With Intercept and Trend \label{westerlundtrend}) coefl(Z-value "Z-value" P-value "P-value") collabels("Z-value" "P-value") nodep nomtitle nonumber unstack
And it generates the table below with missing leading zeros in the p-values. Is there a way I can fix the lack of leading zeros in the p-values in both the formatted latex table and raw results?
\begin{tabular}{l*{2}{c}}
\hline\hline
& Z-value& P-value\\
\hline
Gt & 1.2& .885\\
Ga & 2.44& .993\\
Pt & 2.16& .984\\
Pa & 2.07& .981\\
\hline\hline
\end{tabular}
\end{table}
Thanks
Comment