Announcement

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

  • Regression and Outreg2 variable label display

    Hello I am running a normal regression and i labeled my variables and their values (they are all cathegorical variables).

    For example for age I used the code:

    Code:
    label define Age 1 "Under 30" 2 "30 to 59" 3 "Over 60"
    label variable agediff "Age"
    label values agediff Age
    Click image for larger version

Name:	Cattura.PNG
Views:	1
Size:	22.9 KB
ID:	1630229
    The first problem is that it displays only the label of the categories and not of the variable itself (i.e agediff instead of Age)

    The secon problem is when computing outreg2

    Code:
    outreg2 using myfile, word dec(3) replace label ctitle(Model 1)
    Click image for larger version

Name:	Cattura.PNG
Views:	1
Size:	38.7 KB
ID:	1630230
    I would like that it gets diplayed as in Stata with the variable name and then the values without the numbers so:
    Age
    30 to 59
    Over 60


    Thanks in advance
Working...
X