OLS with series containing different number of obs

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Lassebn
Posts: 14
Joined: Fri May 10, 2013 12:29 am

OLS with series containing different number of obs

Postby Lassebn » Tue Jun 25, 2013 3:07 pm

In my data set I have a dataseries which consists of real stock prices from 1979Q1-2012Q2 and a series for the P/E_ratio for 1980Q1-2012Q2

I want to run the following OLS:

log(real_stock_price)-log(real_stock_price(-1)) c log(P/E_ratio)


Written like this the dependent variable is the logaritmic real return (I want to construct it like this - not make a new series for real return from 1980Q1-2012Q2)
and because i write log(real_stock_price(-1)) i thought Eviews would use the observation from 1979Q1 but it does not..
Is it impossible for Eviews to use the 1979Q4 observation like this when the series have different numbers of observations??

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: OLS with series containing different number of obs

Postby startz » Tue Jun 25, 2013 4:06 pm

In my data set I have a dataseries which consists of real stock prices from 1979Q1-2012Q2 and a series for the P/E_ratio for 1980Q1-2012Q2

I want to run the following OLS:

log(real_stock_price)-log(real_stock_price(-1)) c log(P/E_ratio)


Written like this the dependent variable is the logaritmic real return (I want to construct it like this - not make a new series for real return from 1980Q1-2012Q2)
and because i write log(real_stock_price(-1)) i thought Eviews would use the observation from 1979Q1 but it does not..
Is it impossible for Eviews to use the 1979Q4 observation like this when the series have different numbers of observations??
EViews will use the 1979Q4 to calculate log(real_stock_price)-log(real_stock_price(-1)) for 1980q1. Is that what you want?

Lassebn
Posts: 14
Joined: Fri May 10, 2013 12:29 am

Re: OLS with series containing different number of obs

Postby Lassebn » Wed Jun 26, 2013 12:23 am

In my data set I have a dataseries which consists of real stock prices from 1979Q1-2012Q2 and a series for the P/E_ratio for 1980Q1-2012Q2

I want to run the following OLS:

log(real_stock_price)-log(real_stock_price(-1)) c log(P/E_ratio)


Written like this the dependent variable is the logaritmic real return (I want to construct it like this - not make a new series for real return from 1980Q1-2012Q2)
and because i write log(real_stock_price(-1)) i thought Eviews would use the observation from 1979Q1 but it does not..
Is it impossible for Eviews to use the 1979Q4 observation like this when the series have different numbers of observations??
EViews will use the 1979Q4 to calculate log(real_stock_price)-log(real_stock_price(-1)) for 1980q1. Is that what you want?
Yes that is what i want.. Then why does Eviews write:

Sample (adjusted): 1980Q1 2012Q2

in my estimation output?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: OLS with series containing different number of obs

Postby EViews Gareth » Wed Jun 26, 2013 6:28 am

Because those are the observations used in the estimation, even if values from other dates are used in the calculation of those observations.

Lassebn
Posts: 14
Joined: Fri May 10, 2013 12:29 am

Re: OLS with series containing different number of obs

Postby Lassebn » Thu Jun 27, 2013 4:56 am

Thank you both :)


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests