Skip to content

Commit

Permalink
Version 1.0.4 uploaded to CRAN,
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed May 27, 2014
1 parent 5d1d139 commit 1043065
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ src/*.o
src/*.so
src/*.dll
.project
.settings/org.eclipse.core.resources.prefs
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Package: KFAS
Version: 1.0.4
Date: 2014-04-23
Date: 2014-05-27
Title: Kalman Filter and Smoother for Exponential Family State Space Models.
Author: Jouni Helske <jouni.helske@jyu.fi>
Maintainer: Jouni Helske <jouni.helske@jyu.fi>
Depends:
R (>= 3.0.0)
Imports: stats
Suggests: MASS, nloptr, testthat
Suggests: MASS, testthat
Description: Package KFAS provides functions for Kalman filtering, smoothing,
forecasting and simulation of multivariate exponential family state space
models with exact diffuse initialization when distributions of some or all
Expand Down
3 changes: 2 additions & 1 deletion R/SSMcustom.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ SSMcustom <- function(Z, T, R, Q, a1, P1, P1inf, index, n) {
stop("Misspecified P1inf, argument P1inf must be a (m x m) matrix, where m is the number of states..")
}
}

diag(P1inf)[diag(P1) > 0 || is.na(diag(P1))] <- 0
a1[diag(P1inf) > 0] <- 0
state_names <- paste0("custom", 1:m)

list(index = index, m = m, k = k, p = p, n = n, Z = Z, T = T, R = R, Q = Q, a1 = a1, P1 = P1, P1inf = P1inf, tvz = dim(Z)[3] >
Expand Down

0 comments on commit 1043065

Please sign in to comment.