Skip to content

Commit

Permalink
Merge pull request #62 from rcalinjageman/development
Browse files Browse the repository at this point in the history
1.0.5 to fix negative values issue with estimate_mdiff_paired
  • Loading branch information
rcalinjageman authored Sep 23, 2024
2 parents 91494cb + ab679a1 commit c66f363
Show file tree
Hide file tree
Showing 122 changed files with 202 additions and 129 deletions.
2 changes: 1 addition & 1 deletion CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.0.4
Version: 1.0.5
Date: 2024-09-11 00:48:54 UTC
SHA: 4484803ae42ad9d0ccff8db6a965aafe2893ea2a
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: esci
Type: Package
Title: Estimation Statistics with Confidence Intervals
Version: 1.0.4
Version: 1.0.5
Authors@R: person("Robert", "Calin-Jageman", email = "[email protected]",
role = c("aut", "cre", "cph"))
Description: A collection of functions and 'jamovi' module for the estimation approach to inferential statistics, the approach which emphasizes effect sizes, interval estimates, and meta-analysis. Nearly all functions are based on 'statpsych' and 'metafor'. This package is still under active development, and breaking changes are likely, especially with the plot and hypothesis test functions. Data sets are included for all examples from Cumming & Calin-Jageman (2024) <ISBN:9780367531508>.
Expand Down Expand Up @@ -36,4 +36,4 @@ Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
Depends:
R (>= 2.10)
R (>= 2.10)
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
esci version 1.0.5 (Release data: September 2024)
===========

Changes:

* Fixed bug in estimate_mdiff_paired where negative
values where causing an error due to changes in statpsych ci.ratio.median.ps


esci version 1.0.4 (Release data: September 2024)
===========

Expand Down
20 changes: 13 additions & 7 deletions R/statpsych_wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ wrapper_ci_ratio.2 <- function(
statpsych_cols <- c("Mean1/Mean2", "LL", "UL", "Mean1", "Mean2")
esci_cols <- c("effect_size", "LL", "UL", "comparison_mean", "reference_mean")
} else if (mean_or_median == "median") {
es_ration <- data.frame("Median1" = NA, "Median2" = NA, "Median1/Median2" = NA, "LL" = NA, "UL" = NA)
es_ratio <- data.frame("Median1" = NA, "Median2" = NA, "Median1/Median2" = NA, "LL" = NA, "UL" = NA, check.names = FALSE)

if (all(comparison_measure >= 0) & all(reference_measure >= 0)) {
es_ratio <- as.data.frame(
Expand Down Expand Up @@ -369,13 +369,19 @@ wrapper_ci_ratio.ps <- function(
statpsych_cols <- c("Mean1/Mean2", "LL", "UL", "Mean1", "Mean2")
esci_cols <- c("effect_size", "LL", "UL", "comparison_mean", "reference_mean")
} else if (mean_or_median == "median") {
es_ratio <- as.data.frame(
statpsych::ci.ratio.median.ps(
alpha = 1 - conf_level,
y1 = comparison_measure,
y2 = reference_measure

es_ratio <- data.frame("Median1" = NA, "Median2" = NA, "Median1/Median2" = NA, "LL" = NA, "UL" = NA, check.names = FALSE)

if (all(comparison_measure >= 0) & all(reference_measure >= 0)) {
es_ratio <- as.data.frame(
statpsych::ci.ratio.median.ps(
alpha = 1 - conf_level,
y1 = comparison_measure,
y2 = reference_measure
)
)
)
}

statpsych_cols <- c("Median1/Median2", "LL", "UL", "Median1", "Median2")
esci_cols <- c("effect_size", "LL", "UL", "comparison_median", "reference_median")
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pandoc: 3.1.11
pkgdown: 2.1.0
pkgdown_sha: ~
articles: {}
last_built: 2024-09-12T14:10Z
last_built: 2024-09-23T17:57Z
urls:
reference: https://rcalinjageman.github.io/esci/reference
article: https://rcalinjageman.github.io/esci/articles
2 changes: 1 addition & 1 deletion docs/reference/CI_diamond_ratio.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CI_smd_ind_contrast.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CI_smd_one.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_altruism_happiness.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_anchor_estimate_ma.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_basol_badnews.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_bem_psychic.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_bodywellf.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_bodywellfm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_bodywellm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_campus_involvement.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_chap_8_paired_ex_8.18.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_clean_moral.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_college_survey_1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_college_survey_2.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_damischrcj.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_effronraj_fakenews.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_emotion_heartrate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_exam_scores.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_flag_priming_ma.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_gender_math_iat.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_gender_math_iat_ma.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/data_halagappa.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c66f363

Please sign in to comment.