You are getting this error because you are breaking the line at the wrong place. Your code should be:
ivreg D.s2 (D.lp23 D.lp13 L.D.s2=L(2/3).s2 D(0/1).(a b c)) D(1).(x y z), noconst
parmest, saving(eq2, replace)
This is because -parmest- is a separate command to -ivreg-, and therefore should be on a different line.
Or, alternatively, if you have the delimiter set to a semicolon, your code should be:
ivreg D.s2 (D.lp23 D.lp13 L.D.s2=L(2/3).s2 D(0/1).(a b c)) D(1).(x y z), noconst;
parmest, saving(eq2, replace);
I hope this helps.
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: 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.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Diana Eastman
Sent: 29 October 2008 21:20
To: [email protected]
Subject: st: Error Message
Hi all,
I am getting the following error message when I run a portion of code:
. noconst parmest, saving(eq2, replace)
unrecognized command: noconst
r(199);
Code below:
ivreg D.s2 (D.lp23 D.lp13 L.D.s2=L(2/3).s2 D(0/1).(a b c)) D(1).(x y z),
noconst parmest, saving(eq2, replace)
Any idea why this command is unrecognized?
Thank you in advance
Diana M. Eastman
Greylock McKinnon Associates
Cambridge MA, 02142
*
* 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/