Skip to content

Commit

Permalink
Update examples of the functions selectRHLP and selectMRHLP
Browse files Browse the repository at this point in the history
Update the examples of the functions selectRHLP and selectMRHLP because their running time is still above 10s on Windows machines
  • Loading branch information
Florian-Lecocq committed Jul 25, 2019
1 parent d6df6ac commit 77b23bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/selectMRHLP.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
#' data(multivtoydataset)
#'
#' # Let's select a MRHLP model on a multivariate time series with 3 regimes:
#' data <- multivtoydataset[1:420, ]
#' data <- multivtoydataset[1:320, ]
#' x <- data$x
#' y <- data[, c("y1", "y2", "y3")]
#'
#' selectedmrhlp <- selectMRHLP(X = x, Y = y, Kmin = 2, Kmax = 4,
#' pmin = 0, pmax = 2)
#' pmin = 0, pmax = 1)
#'
#' selectedmrhlp$summary()
selectMRHLP <- function(X, Y, Kmin = 1, Kmax = 10, pmin = 0, pmax = 4, criterion = c("BIC", "AIC"), verbose = TRUE) {
Expand Down
4 changes: 2 additions & 2 deletions R/selectRHLP.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
#' data(univtoydataset)
#'
#' # Let's select a RHLP model on a time series with 3 regimes:
#' data <- univtoydataset[1:420,]
#' data <- univtoydataset[1:320,]
#'
#' selectedrhlp <- selectRHLP(X = data$x, Y = data$y,
#' Kmin = 2, Kmax = 4, pmin = 0, pmax = 2)
#' Kmin = 2, Kmax = 4, pmin = 0, pmax = 1)
#'
#' selectedrhlp$summary()
selectRHLP <- function(X, Y, Kmin = 1, Kmax = 10, pmin = 0, pmax = 4, criterion = c("BIC", "AIC"), verbose = TRUE) {
Expand Down
4 changes: 2 additions & 2 deletions man/selectMRHLP.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/selectRHLP.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified samurais_0.1.0.pdf
Binary file not shown.

0 comments on commit 77b23bf

Please sign in to comment.