Announcement

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

  • Output of tabstat trough estpost esttab; changed output after running it a second time

    Hello Statlist,

    I wanted to output some simple descriptive statistics using tabstat estpost and esttab.
    I am new to stata and just used 5 varibales, to try it out, later I want to use all 15 of my varibales.
    Sadly I am not sufficent enough in stata to find my misstake.

    Here is my code:

    estpost tabstat FB_posemo FB_negemo FB_WC FB_WPS FB_Sixltr, statistics( count mean sd mean median min max ) columns(statistics)
    esttab , cells("N mean sd mean p50 min max")

    Also some pictures for further understanding:
    This is the first part of the code

    Click image for larger version

Name:	tabstat.PNG
Views:	1
Size:	18.3 KB
ID:	1398576


    After the first time I used the esttab code everything was fine and I got my wanted outcomes.
    I was also able to export it as rtf with using to my computer.
    Click image for larger version

Name:	esttab_before.PNG
Views:	1
Size:	12.5 KB
ID:	1398577

    After the second time I ran the code to make sure it was still okay I got this output from tabstat.


    Click image for larger version

Name:	esttab_after.PNG
Views:	1
Size:	8.0 KB
ID:	1398578

    I am not sure what went wrong, as I am using stata only for a couple of days now.
    Can somebody help me with this problem?


    Thanks in advance.








  • #2
    Hi Felix. You aren't showing us all your code. For example, what are percentage~g and number_bac~g? Show us exactly what you typed, from the beginning, and what Stata returned.

    Comment

    Working...
    X