My problem is extremely simple. But due to lack of proper documentation, I'm getting stuck.
I'm using UCM from statsmodel of python. I'm trying this example.
I want to create a dataset that has actual series, predicted series, level, trend and cycle component. I tried to use output_res.predict
and output_res.fittedvalues
option to get the predicted series. But I'm always getting 0
for the first observation.
Can someone please guide me how to get the final dataset?
Thanks!