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]

st: proper use of if


From   Rodrigo Briceño <[email protected]>
To   [email protected]
Subject   st: proper use of if
Date   Tue, 16 Nov 2010 10:32:52 -0600

Dear Stata Listers. I'm using Stata 9.2 and Windows XP.

I have a panel with 324 bonds (identified with the variable isin2)
with 54 observations in time (monthly series). I'm running several
individual (for each bond) time series regression:

quietly regress liq sap liqmk m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 mes
pprom if isin2==1
predict ehat, res

When I run the command the residuals are generated for all the 17496
observations, instead of just 54 observations as correctly
corresponds. My question to the list is if there are some command that
allows me to produce the required results just for the 54 observations
considered each time. I'm using if, since not all the 324 bonds are
going to be used in the regression process.

Thanks.

-- 
Rodrigo Briceño
Economist
[email protected]
MSN: [email protected]
SKYPE: rbriceno1087

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index