Skip to content

Commit

Permalink
Handle outcome NAs in get_draws_sigma()
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jun 13, 2024
1 parent 33c9a77 commit aa6448d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: brms.mmrm
Title: Bayesian MMRMs using 'brms'
Version: 1.0.0.9000
Version: 1.0.0.9001
Authors@R: c(
person(
given = c("William", "Michael"),
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# brms.mmrm 1.0.0.9000 (development)

# brms.mmrm 1.0.0.9001 (development)

* Handle outcome `NA`s in `get_draws_sigma()`.

# brms.mmrm 1.0.0

Expand Down
1 change: 1 addition & 0 deletions R/brm_marginal_draws.R
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ get_draws_sigma <- function(
) {
draws <- tibble::as_tibble(posterior::as_draws_df(model))
draws <- draws[, grep("^b_sigma_", colnames(draws), value = TRUE)]
data[[attr(data, "brm_outcome")]] <- seq_len(nrow(data))
x <- brms::make_standata(formula = formula, data = data)$X_sigma
colnames(x) <- paste0("b_", colnames(x))
x <- as.data.frame(x)
Expand Down

0 comments on commit aa6448d

Please sign in to comment.