Skip to content

Commit

Permalink
fix cluster_probs data.frame
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Sep 4, 2024
1 parent e00dd6e commit 5a7cdcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_probs.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ get_probs.mnhmm <- function(model, data = NULL, nsim = 0,
cluster_probs <- data.frame(
cluster = model$cluster_names,
id = rep(ids, each = D),
estimate = unlist(get_omega(theta_raw, X_cluster, 0))
estimate = c(get_omega(theta_raw, X_cluster, 0))
)

if (nsim > 0) {
Expand Down

0 comments on commit 5a7cdcd

Please sign in to comment.