Statalist


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

Re: st: use of if command after commands with options


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: use of if command after commands with options
Date   Thu, 31 Jul 2008 18:19:15 +0100 (BST)

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index