Resampling problem

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

Florian
Posts: 4
Joined: Thu Aug 11, 2011 7:03 am

Resampling problem

Postby Florian » Sat Sep 03, 2011 7:43 am

Hello, I am trying to resample residuals in a panel with countries and Quarters as units. I have one series containing all observations for the residuals. I want the residuals to only be resampled within a country and hence have written the following code:

smpl 1960q1 2007q4

equation gls_fixed_y.ls(wgt=cxdiag,cx=f,cov=cxwhite) gdp gdp(-1) gdp(-2) gdp(-3) gdp(-4) gc(-1) gc(-2) gc(-3) gc(-4) c

genr gls_resid_fixed_y = resid

rndseed(type=mt) 1234567

for %country Argentina Armenia Australia Belgium Botswana Brazil Bulgarie Canada Chile Colombia Croatia Czech Denmark Ecuador El_Salvador Estonia Finland France Germany Greece Hungary Iceland Ireland Israel Italy Latvia Lithuania Malaysia Mexico Netherlands Norway Peru Poland Portugal Romania Slovak Slovenia South_Africa Spain Sweden Thailand Turkey UK Uruguay US

smpl @all if gls_resid_fixed_y<>NA

gls_resid_fixed_y.resample(outsmpl=@all if countries ="{%country}" ) gdp_a_{%country} gc_a_{%country}

next

The output files I get are empty though, and hence only contain NA as observations. Does anyone have an idea why this might be the case?

Thank you!

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Resampling problem

Postby EViews Glenn » Tue Sep 06, 2011 9:34 am

Can you send this with your serial number to support@eviews.com. Please include the date of your copy of EViews. Thanks.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests