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]

[no subject]



mi impute chained (regress) x1 = x2 (regress) x3 = x4, add(1)

However, none of the examples contains two expressions containing equals
signs.

When I try with the example data, I get correct behaviour following the
example exactly:

. webuse mheart8s0
(Fictional heart attack data; bmi and age missing; arbitrary pattern)

. mi impute chained (pmm) bmi (regress) age = attack smokes hsgrad female, add(1)
[ correct output deleted]

But if I try to specify two -(regress)- equations with RHS variables, I
get this: 

. mi impute chained (regress) bmi = attack (regress) age = attack smokes hsgrad female, add(1)
variable regress not found
 -- above applies to specification = attack (regress) age = attack smokes hsgrad female

r(111);


Similarly, if I simply re-order the working command so that the -(pmm)-
comes after the -(regress)- with the equals sign, I get the same sort of
error:

. mi impute chained (regress) age = attack smokes hsgrad female (pmm) bmi, add(1)
variable pmm not found
 -- above applies to specification = attack smokes hsgrad female (pmm) bmi

r(111);

Since the error message interprets the -(uvmethod)- as a variable name,
I am inclined to suspect a parsing bug, but I may well be mistaken.


Regards,

Brendan
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:[email protected]    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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