Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Bug? Margins Row Names

From   "Wolfe, Joseph Daniel" <>
To   "" <>
Subject   st: Bug? Margins Row Names
Date   Mon, 31 Oct 2011 13:25:50 +0000

Hi everyone,

I'm writing a program where I use the row names of r(at) after margins.
I'm running into an odd problem.  Whenever I have more than 1 row,
"1bn._at" and "2._at" is returned as the row names when the matrix
displays "1._at" "2._at." This issue does not occur when I have only 1
row, i.e., "1._at" is returned as the row name.

For example: 

// Info about my copy of Stata
//  - Stata/IC 12.0 for Mac (64-bit Intel)
//  - Revision 13 Oct 2011

version 12.0  
sysuse cancer

// 1.  Incorrect Row 1 Name
logit died studytime drug age
margins, at(drug=(0 1))
local rnames : rownames r(at)
di `"rnames: `rnames'"'

// 2.  Correct Row 1 Name
margins, at(drug=(0))
local rnames : rownames r(at)
di `"rnames: `rnames'"'

Is this a bug or am I missing something here?  Thank you so much for any

Joseph D. Wolfe

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index