Skip to content

Commit

Permalink
M[i]
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Nov 25, 2024
1 parent 8267f66 commit 808d888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/coef.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ coef.nhmm <- function(object, probs, ...) {
lapply(
seq_len(object$n_channels), function(i) {
data.frame(
state = rep(object$state_names, each = M * K),
state = rep(object$state_names, each = M[i] * K),
observation = object$symbol_names[[i]],
parameter = rep(coef_names, each = M),
parameter = rep(coef_names, each = M[i]),
estimate = c(object$gammas$B[[i]]) / rep(sd_B_X, each = M[i])
)
}
Expand Down

0 comments on commit 808d888

Please sign in to comment.