GDP and random forest prediction plot

/*****************************************
Plot GDP data using plotTS
******************************************/
//Set Canvas Size
plotOpenWindow;

//start date
dtstart = features_q[1,1];

//Plot control structure
struct plotControl myPlot;
myPlot = plotGetDefaults("XY");

//Place first 'X' tic mark at 1984 month 1 and draw one every 6 months
plotSetXTicInterval(&myPlot, 20, 1961);

//Display only 4 digit year on 'X' tic labels
plotSetXTicLabel(&myPlot, "YYYY-QQ");

//Legend
plotSetLegend(&myPlot, "Obs."$|"Predicted","TOP RIGHT", 1);

//Plot title
plotSetTitle(&myPlot, "U.S. Real GDP (Annual Percent Change, 2009=100)");
plotTS(myPlot, dtstart, 4, gdp_q*100);

//Add predictions
plotAddTS(features_q[testT+1,1], 4, predictions*100);

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy