Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate ARIMA with CRRao #113

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added .github/.DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions ARIMA_StateSpaceModels.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using StateSpaceModels, CRRao, DataFrames

# load the data
data = DataFrame(x = [1.3, 2.5, 3.1, 4.7, 5.2, 6.8])

# define the state space model
ssm = SSModel(data.x, ARIMA(p=1, d=1, q=1))

# perform Kalman filtering and smoothing
kalman_result = kalman(ssm)

# get estimated states and observations
est_states = states(kalman_result)
est_obs = observations(kalman_result)

Binary file added src/.DS_Store
Binary file not shown.
Binary file added test/.DS_Store
Binary file not shown.