You should have typed:
pca ... if x==1, comp(6)
-- Maarten
--- Stephan Rudolfer <[email protected]> wrote:
> 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.
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
*
* 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/