* * Example of exponential smoothing, pp 151-152 * data(unit=input) 1 11 shipments 200 135 195 197.5 310 175 155 130 220 277.5 235 * * Exponential smoothing is done using the instruction ESMOOTH (or the Exponential * Smoothing wizard). The alpha value is controlled by the alpha option. To get * the fitted (one-step-forecast) values, use the FITTED option. * * @uforeerrors uses a procedure to analyze the forecast errors comparing the * actual data (first parameter) with the predictions (second parameter) over the * range given by the final two parameters. This will be used extensively in * these examples. * esmooth(alpha=.1,fitted=sm1) shipments @uforeerrors(title="SES with Alpha=.1") shipments sm1 2 11 esmooth(alpha=.5,fitted=sm5) shipments @uforeerrors(title="SES with Alpha=.5") shipments sm5 2 11 esmooth(alpha=.9,fitted=sm9) shipments @uforeerrors(title="SES with Alpha=.9") shipments sm9 2 11 * graph(footer="Figure 4-7 Shipments of Electric Can Openers",$ key=upleft,klabels=||"Observed Data","alpha=.1","alpha=.5","alpha=.9"||) 4 # shipments # sm1 # sm5 # sm9