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]
Re: st: proper use of if
From
Sergiy Radyakin <[email protected]>
To
[email protected]
Subject
Re: st: proper use of if
Date
Tue, 16 Nov 2010 12:44:27 -0500
predict ehat if e(sample), res
On Tue, Nov 16, 2010 at 11:32 AM, Rodrigo Briceño <[email protected]> wrote:
> 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/
>
*
* 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/