Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: use of if command after commands with options


From   "Stephan Rudolfer" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: use of if command after commands with options
Date   Thu, 31 Jul 2008 18:03:15 +0100

I wish to use the if command to select a subset for estimation purposes, but also use options for the main command.  This doesn't seem to work, since stata thinks that "if" is a further option.  For example, pca..., comp(6). If I follow this with "if x==1", it won't work because stata thinks that "x==1" is a further option for pca.

Comments please!
Stephan Rudolfer
--
Dr Stephan M Rudolfer
Honorary Research Fellow 
in Biostatistics & Mathematical Statistics
Chairman, Manchester Group, Royal Statistical Society
Biostatistics, Health Methodology Research Group
School of Community Based Medicine
University Place (1st Floor)
University of Manchester
Oxford Road, Manchester M13 9PL.
Tel: +44 161 275 1650    Fax: +44 161 275 5205
Email: [email protected]
Web: http://www.maths.man.ac.uk/DeptWeb/Homepages/smr/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index