Hi,
I'm analysing time series data using a few different methods, including Dynamic Linear Models.
For such I am using the dlm package in R. However, I don't feel like I really understand it and am worried about what I've done.
I have followed the 'Nile' example within the data and used a Random Walk plus noise, identifying relevant parameters using the MLE function. After using the Kalman smoother I have produced a model that plots well. However, I wondered if there was any way through which to report results similar to a standard regression [such as r2, coefficients of the model etc]?
I would also like to use a segmented DLM as a method to support an Interrupted Time Series. Traditionally [in regards to a segmented regression] you could compare slope and intercept of the two regression lines or extrapolate out and calculate the difference between the observed and predicted values at a particular time. As such, I wondered if anyone knew how to derive relevant data from the dlm package [or am I just misunderstanding it...]?
I need to be able to outline some statistical results alongside my plot, but am not sure of what could be referred to?
If anyone could help it would be hugely appreciated?