Is there an easy command to do this:
Code: Select all
for %weight mse ranks
smpl 2013.1 2018.1
GDP.forcavg(name=test_{%weight}, wgttype={%weight},trainsmpl="2010Q1 2012Q4") GDP_f*
nextModerators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Code: Select all
for %weight mse ranks
smpl 2013.1 2018.1
GDP.forcavg(name=test_{%weight}, wgttype={%weight},trainsmpl="2010Q1 2012Q4") GDP_f*
nextCode: Select all
'flexible training period"
genr mse_fix=NA
genr mse_all=NA
for !ii=0 to 31
smpl 2011q1+!ii 2011q1+!ii
%train_fix="2011q1+"+@str(!ii)+"-8 2011q1+"+@str(!ii)+"-1" ''' fixed evaluation mse sample
%train_all="2011q1-1 2011q1+"+@str(!ii)+"-1" 'expanding evaluation mse smpl
gdp.forcavg(name=test_a, wgttype=mse, trainsmpl={%train_fix}) gdp_f1 gdp_f2
mse_fix=test_a
gdp.forcavg(name=test_b, wgttype=mse, trainsmpl={%train_all}) gdp_f1 gdp_f2
mse_all=test_b
nextUsers browsing this forum: No registered users and 2 guests