Skip to content

Commit

Permalink
Merge pull request #174 from sfcheung/fix_mod
Browse files Browse the repository at this point in the history
Update to 0.2.3.1
  • Loading branch information
sfcheung authored Sep 27, 2024
2 parents 64849e4 + bb11eff commit c02bf37
Show file tree
Hide file tree
Showing 4 changed files with 12 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: manymome
Title: Mediation, Moderation and Moderated-Mediation After Model Fitting
Version: 0.2.3
Version: 0.2.3.1
Authors@R:
c(person(given = "Shu Fai",
family = "Cheung",
Expand Down
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# manymome 0.2.3.1

## Bug Fixes

- Fixed an issue related to
the internal function
`merge_model_matrix()` in some special
cases. (0.2.3.1)

# manymome 0.2.3

## New Features
Expand Down
2 changes: 1 addition & 1 deletion R/lm_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ merge_model_matrix <- function(outputs) {
mm <- lapply(outputs,
function(x) {
out <- stats::model.matrix(x,
contrasts.arg = x$contrasts)[, -1]
contrasts.arg = x$contrasts)[, -1, drop = FALSE]
y_data <- get_response_data(x)
cbind(y_data, out)
})
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![R-CMD-check](https://github.com/sfcheung/manymome/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/sfcheung/manymome/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

(Version 0.2.3, updated on 2024-09-25, [release history](https://sfcheung.github.io/manymome/news/index.html))
(Version 0.2.3.1, updated on 2024-09-27, [release history](https://sfcheung.github.io/manymome/news/index.html))

# manymome <img src="man/figures/logo.png" align="right" height="150" />

Expand Down

0 comments on commit c02bf37

Please sign in to comment.