Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Bug? Margins Row Names
From
"Wolfe, Joseph Daniel" <[email protected]>
To
"[email protected]" <[email protected]>
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
response.
Best,
Joseph D. Wolfe
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/