Announcement

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

  • Questions about "estimates store" and "estimates table" function (Thank you so much for your help!!)

    Hi, thank you so much for your willingness to help!

    I am currently running logistic regression with fixed effects on region and time. I have two questions around the estimates store and estimates table functions.
    I ran the codes below to create tables after I ran some regression models.


    qui logit outcomevar1 var1 var2 i.year i.region, nolog or
    estimates store Model1
    qui logit outcomevar1 var1 var2 var3 i.year i.region, nolog or
    estimates store Model2

    qui logit outcomevar2 var1 var2 i.year i.region, nolog or
    estimates store Model3
    qui logit outcomevar2 var1 var2 var3 i.year i.region, nolog or
    estimates store Model4
    estimates table Model1 Model2 Model3 Model4, b(%9.3f) varwidth(20)



    (1) How can I create a table that shows odds ratio instead of coefficients? Even if the output after running the regression shows odds ratio,
    once I create the table by running estimates table, it only prints the values of coefficients. Please help me!

    (2) My issue is, for some unknown reasons, when I run the code estimates table Model1 Model2 Model3 Model4, b(%9.3f) varwidth(20)
    only the first two models are included in the table but the last two models are shown empty. Why??
    I am using stata version 15. Please let me know why this happens and how I can fix it! I want to create a table that demonstrates four models!

    I am sharing the part of output I am getting.

    Click image for larger version

Name:	captured output.PNG
Views:	1
Size:	9.1 KB
ID:	1429179


    Thank you very much!








  • #2
    Welcome to Statalist.

    Let me first mention that estimates store and estimates table are Stata commands rather than Stata functions, which are things like sqrt() and log().

    On your first question, the output of help estimates table tells me that the eform option will display the exponentiated form of the exponents, which for a logit regression gives the odds ratio.

    On your second question, the output you display tells us that the commands you have shown are not what you actually ran. Please review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Section 12.1 is particularly pertinent

    12.1 What to say about your commands and your problem

    Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!
    We can't tell you precisely what you did wrong if you haven't told us precisely what you did.

    Note also that the FAQ requests posters not use screen shots, but instead copy commands and output from the Stata Results window and paste them into the Statalist post using CODE delimiters.

    Comment

    Working...
    X