Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mlogit Marginals STATA to LaTeX

    Hello,

    I am trying to export marginal levels of covariates in a multinomial logit with labels and no base levels.
    The following is the stata code. It is still exporting an unlabelled table with base levels.
    foreach x in a b c{
    qui mlogit `x' i.male_ed i.fem_ed i.social i.maleage i.femage, b(2)
    qui estpost margins, dydx(*)
    eststo `x'_marginals
    }
    esttab a_marginals b_marginals c_marginals using example.tex, replace nobaselevels ///
    b(3) se(3) label ///
    nonumbers
    This is the overleaf code:
    I am getting the "float too large for page" error.
    I tried, adjust box, scale box, long table, estwide and sideways table as well. They are not giving me a full table.
    \begin{table}[htbp!]
    \begin{center}
    \label{table8}
    {\tabcolsep=2pt
    {
    \caption{(\%)} \label{tab:table8}
    \resizebox{1\textwidth}{!}{
    \input{example.tex}}
    }}
    \end{center}
    \end{table}

    Please suggest. Thanks.

  • #2
    estout is from SSC (FAQ Advice #12). You probably should post the margins results.

    Code:
    foreach x in a b c{
    qui mlogit `x' i.male_ed i.fem_ed i.social i.maleage i.femage, b(2)
    qui margins, dydx(*) post
    est sto `x'_marginals
    }
    esttab a_marginals b_marginals c_marginals using example.tex, replace nobaselevels ///
    b(3) se(3) label ///
    nonumbers
    If this does not resolve the problem, provide a reproducible example as recommended in the above referenced FAQ Advice.

    Comment

    Working...
    X