Skip to content

Commit

Permalink
Merge pull request #153 from sfcheung/devel
Browse files Browse the repository at this point in the history
0.1.14.16: Add pseudo_johnson_neyman()
  • Loading branch information
sfcheung authored Apr 4, 2024
2 parents 2df335c + e9f9d9e commit 249be44
Show file tree
Hide file tree
Showing 9 changed files with 1,046 additions and 4 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.1.14.15
Version: 0.1.14.16
Authors@R:
c(person(given = "Shu Fai",
family = "Cheung",
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ S3method(print,indirect_list)
S3method(print,indirect_proportion)
S3method(print,lm_list)
S3method(print,mc_out)
S3method(print,pseudo_johnson_neyman)
S3method(print,summary_lm_list)
S3method(summary,lm_list)
S3method(terms,lm_from_lavaan)
Expand Down Expand Up @@ -67,4 +68,5 @@ export(merge_mod_levels)
export(mod_levels)
export(mod_levels_list)
export(plot_effect_vs_w)
export(pseudo_johnson_neyman)
export(total_indirect_effect)
11 changes: 10 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# manymome 0.1.14.15
# manymome 0.1.14.16

## New Features

Expand Down Expand Up @@ -62,6 +62,15 @@
against a moderator, using the output
of `cond_indirect_effects()`. (0.1.14.14 - 0.1.14.15)

- Added `pseudo_johnson_neyman()`. It
used the pseudo Johnson-Neyman approach
(Hayes, 2022) to find the value of
a moderator at which the conditional
effect (direct or indirect) changes
from nonsignificant to significant
(or vice versa), based on the
confidence interval selected.
(0.1.14.16)

## Miscellaneous

Expand Down
2 changes: 1 addition & 1 deletion R/cond_indirect.R
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ cond_indirect_effects <- function(wlevels,
attr(out1, "est") <- est
attr(out1, "implied_stats") <- implied_stats
if (boot_ci) attr(out1, "boot_out") <- boot_out
if (mc_ci) attr(out1, "ci_out") <- ci_out
if (mc_ci) attr(out1, "mc_out") <- mc_out
attr(out1, "prods") <- prods
attr(out1, "x") <- x
attr(out1, "y") <- y
Expand Down
Loading

0 comments on commit 249be44

Please sign in to comment.