Bookmark and Share

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]

Re: st: punaf error, even with version control


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: punaf error, even with version control
Date   Mon, 03 Oct 2011 16:27:41 +0100

Strictly speaking, yes, -margins- in Stata 12 has a bug, if you think we should be able to revert to the Stata 11 -margins- at will just by using version control. However, I would prefer to fix my code instead of complaining, as -margins- is such a wonderful tool.

I am working on the emergency Stata 12 update as I speak, and look forward to doing further upgrades.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 03/10/2011 17:13, Richard Williams wrote:
Given that -punaf- uses version control, I am a little surprised that
you are having this problem. Is -margins- not respecting the version
control, i.e. is it using Stata 12 format instead of Stata 11? If so,
that would seem to be a bug in -margins-.

At 09:49 AM 10/3/2011, Roger Newson wrote:
I have had a look at the inside of -punaf-, and have traced the
problem. There seems to have been a change in -margins- parameter
names during the update from Stata 11 to Stata 12.

Under Stata 11, if you typed

use http://www.stata-press.com/data/r11/lbw.dta, clear
describe
logit low i.race i.smoke, or robust
margins, at((asobserved) _all) at(smoke==0) post
ereturn list
matr list e(b)

then you would find that the -margins- parameter names (belonging to
scenario means) were -_cons- and -2.at-. Under Stata Version 12, the
parameter names are -1.at- and -2.at-. It was this change that has
broken -punaf-, which assumes the old parameter names.

I will attempt to fix this feature by updating -punaf- to Stata
Version 12. In the meantime, many thanks to Andrew again for alerting
me to this problem.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/


Opinions expressed are those of the author, not of the institution.

On 03/10/2011 13:07, [email protected] wrote:
Hello everyone,

I am trying to use _punaf_ in Stata 12; it worked fine in v11, but
even the examples fail in v12, giving

[_cons] not found

I have tried version control without success- I suspect the logit
estimates are simply un-findable by _punaf_ ?
Any ideas would be greatly appreciated.

cheers-
Andrew
*
* 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/
*
* 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/

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* 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/
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index