-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHW_forecast_Vehicles.sas
57 lines (42 loc) · 1.58 KB
/
HW_forecast_Vehicles.sas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
*-------------------------------------------------------------------------;
* Project : BIA672 Marketing Analytics ;
* Developer(s) : Khasha Dehand ;
* Comments : forecasting Problem ;
*-------------------------------------------------------------------------;
title1 "Sales of Passenger Cars";
proc sgplot data= Vehicles;
series x=period y=vehicles / markers;
run;
*** holt winters method **;
proc forecast data=Vehicles seasonal=12
method=winters lead=6
out=Fcast_Vehicles outfull outresid outest=Fcast_est_Veh;
var vehicles;
id period;
run;
proc sgplot data=Fcast_Vehicles(where=(period>=200)) ;
series x=period y=vehicles / group=_type_ ;
where _type_ ^= 'RESIDUAL';
run;
*** Double Exp. smoothing **;
proc forecast data=Vehicles
method=winters lead=6
out=Fcast_Vehicles outfull outresid outest=Fcast_est_Veh;
var vehicles;
id period;
run;
proc sgplot data=Fcast_Vehicles(where=(period>=200)) ;
series x=period y=vehicles / group=_type_ ;
where _type_ ^= 'RESIDUAL';
run;
*** Exp. smoothing **;
proc forecast data=Vehicles
method=expo lead=6
out=Fcast_Vehicles outfull outresid outest=Fcast_est_Veh;
var vehicles;
id period;
run;
proc sgplot data=Fcast_Vehicles(where=(period>=200)) ;
series x=period y=vehicles / group=_type_ ;
where _type_ ^= 'RESIDUAL';
run;