I have a very simple question. I am running an Unobserved Components Model to decompose and forecast my data. I transform my data into log and then run the model. My code is given below
proc ucm data = metals;
id year interval = year;
model metal_indices=level1988;
level variance=0 noest;
slope plot=smooth;
cycle plot=smooth;
cycle plot=smooth;
estimate back=6;
forecast back=6 lead=6 plot=decomp;
run;
As I am using the log form of data after I obtain my forecasts and parameters I need to transform the data back. What code should I use for it?
Hello -
As an example see "Predicting with model BSM4" chapter of this very nice paper called "the unobservable components model" by Prof. Tom Fomby of Department of Economics, Southern Methodist University available here: http://faculty.smu.edu/tfomby/eco5375/data/Unobservable%20Components%20Models/The%20Unobservable%20C... - a SAS program called BSM.sas that can be found in the appendix of this document.
Thanks,
Udo
Hello -
As an example see "Predicting with model BSM4" chapter of this very nice paper called "the unobservable components model" by Prof. Tom Fomby of Department of Economics, Southern Methodist University available here: http://faculty.smu.edu/tfomby/eco5375/data/Unobservable%20Components%20Models/The%20Unobservable%20C... - a SAS program called BSM.sas that can be found in the appendix of this document.
Thanks,
Udo
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.