Skip to content

Commit

Permalink
no need for newdata
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Sep 8, 2024
1 parent 7630082 commit a26c103
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions R/predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ predict.nhmm <- function(
!is.null(newdata[[time]]),
"Can't find time index variable {.var {time}} in {.arg newdata}."
)
} else {
stopifnot_(
!is.null(object$data),
"Model does not contain original data and argument {.arg newdata} is
{.var NULL}."
)
object <- update(object, newdata = newdata)
}
S <- object$n_states
Expand Down Expand Up @@ -141,15 +135,8 @@ predict.mnhmm <- function(
!is.null(newdata[[time]]),
"Can't find time index variable {.var {time}} in {.arg newdata}."
)
} else {
stopifnot_(
!is.null(object$data),
"Model does not contain original data and argument {.arg newdata} is
{.var NULL}."
)
object <- update(object, newdata = newdata)
}

T_ <- object$length_of_sequences
N <- object$n_sequences
S <- object$n_states
Expand Down

0 comments on commit a26c103

Please sign in to comment.