Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prep for CRAN 0.8.7 #634

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: effectsize
Title: Indices of Effect Size
Version: 0.8.6.6
Version: 0.8.7
Authors@R:
c(person(given = "Mattan S.",
family = "Ben-Shachar",
Expand Down Expand Up @@ -72,9 +72,9 @@ Depends:
R (>= 3.6)
Imports:
bayestestR (>= 0.13.2),
insight (>= 0.19.8),
parameters (>= 0.21.5),
performance (>= 0.10.9),
insight (>= 0.19.9),
parameters (>= 0.21.6),
performance (>= 0.11.0),
datawizard (>= 0.9.1),
stats,
utils
Expand Down Expand Up @@ -105,7 +105,7 @@ VignetteBuilder:
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3.9000
RoxygenNote: 7.3.1
Config/testthat/edition: 3
Config/testthat/parallel: true
Config/Needs/website:
Expand Down
14 changes: 4 additions & 10 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
# effectsize 0.8.7.xxx
# effectsize 0.8.7

- This release changes the licensing model of `{effectsize}` to an MIT license.

## New features

- `cohens_d()` and `glass_delta()` gain an `adjust` argument for applying Hedges' small-sample bias correction (`hedges_g()` is now an alias for `cohens_d(adjust = TRUE)`).

- `cohens_d()` and `glass_delta()` gain an `adjust` argument for applying Hedges' small-sample bias correction (`hedges_g()` is now an alias for `cohens_d(adjust = TRUE)`).
- `repeated_measures_d()` to compute standardized mean differences (SMD) for repeated measures data.
- Also supported in `effectsize(<t.test(paired = TRUE)>)`
- Also supported in `effectsize(<t.test(paired = TRUE)>)`
- New function: `interpret_fei()`

## Bug fixes

- Minor stability fix to ncp-based CI methods ( #628 )
- `nnt()` now properly accepts the `y` argument.

# effectsize 0.8.7

## New features

- New function: `interpret_fei()`

# effectsize 0.8.6

This is a minor update to bring `effectsize` in-line with the formula methods
Expand Down
2 changes: 1 addition & 1 deletion R/utils_validate_input_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if (length(x) != 3L) {
insight::format_error(
"Formula must have one of the following forms:",
" y ~ group (independant samples)",
" y ~ group (independent samples)",

Check warning on line 15 in R/utils_validate_input_data.R

View check run for this annotation

Codecov / codecov/patch

R/utils_validate_input_data.R#L15

Added line #L15 was not covered by tests
" y ~ 1 (one sample)",
" Pair(x,y) ~ 1 (paired samples)"
)
Expand Down Expand Up @@ -102,7 +102,7 @@
}

#' @keywords internal
.get_data_paired <- function(x, y = NULL, data = NULL, method,

Check warning on line 105 in R/utils_validate_input_data.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/utils_validate_input_data.R,line=105,col=56,[function_argument_linter] Arguments without defaults should come before arguments with defaults.
verbose = TRUE, ...) {
if (inherits(x, "formula")) {
formula_error <-
Expand Down Expand Up @@ -323,7 +323,7 @@
verbose = TRUE, ...) {
if (inherits(x, "formula")) {
if (length(x) != 3L || length(x[[3]]) != 1L) {
insight::format_error("Formula must have the form of 'DV1 + ... + DVk ~ group', with exactly one term on the RHS.")

Check warning on line 326 in R/utils_validate_input_data.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/utils_validate_input_data.R,line=326,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 121 characters.
}

data <- .resolve_formula(stats::reformulate(as.character(x)[3:2]), data, ...)
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Test environments

* local installation: R 4.3.1 on Windows
* local installation: R 4.3.2 on Windows
* GitHub Actions
- Windows: release
- macOS: release
Expand Down
17 changes: 11 additions & 6 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Falk
Faraggi
Fei
Fo
Fum
Funder
GFI
Gelman
Expand Down Expand Up @@ -82,8 +81,6 @@ Kiesser
Koo
Kruschke
LMM
Labelled
labelled
Lajeunesse
Lakens
Landis
Expand Down Expand Up @@ -126,6 +123,7 @@ Penfield
PloS
Psychometrika
Psychonomic
Pustejovsky
RFI
RMR
RMSEA
Expand All @@ -137,17 +135,21 @@ Ringle
Rosenthal
Rothstein
Rouder
Rouder's
Routledge
Ruscio
SDs
SEM
SMD
SRMR
Sarstedt
Sawilowsky
Schumacker
Schweder
Shachar
Shadish
Shmekels
Speckman
Steiger
Szodorai
Szumilas
Expand All @@ -172,6 +174,7 @@ anova
arXiv
arcsin
biserial
blogspot
bmwiernik
brglm
brms
Expand All @@ -189,21 +192,24 @@ doi
dynamicfit
easystats
effectSize
effectsize’
et
fixest
frac
friedman
ggstatsplot
github
glmmadmb
gtsummary
homoscedasticity
http
https
independant
infty
intraclass
io
jeffrouder
joss
kruskal
labelled
lifecycle
lm
mattansb
Expand Down Expand Up @@ -233,7 +239,6 @@ rescale
rmANOVA
sd
semipartial
shinyapps
statswiki
strengejacke
th
Expand Down
2 changes: 1 addition & 1 deletion man/RCT_table.Rd

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

2 changes: 1 addition & 1 deletion man/Smoking_FASD.Rd

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

1 change: 0 additions & 1 deletion man/effectsize-package.Rd

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

2 changes: 1 addition & 1 deletion man/food_class.Rd

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

2 changes: 1 addition & 1 deletion man/hardlyworking.Rd

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

2 changes: 1 addition & 1 deletion man/rouder2016.Rd

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

2 changes: 1 addition & 1 deletion man/screening_test.Rd

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

4 changes: 2 additions & 2 deletions vignettes/statistical_power.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
The following section walks through a simple applied example to ensure 1) the concepts surrounding and involved in power are clear and digestible, and 2) that the role and value of the `effectsize` package are likewise clear and digestible.
Understanding both of these realities will allow for more complex extensions and applications to a wide array of research problems and questions.

# Example: Comparing Means of Independant Samples
# Example: Comparing Means of Independent Samples

In addition to relying on the _easystats_ `effectsize` package for effect size calculation, we will also leverage the simple, but excellent `pwr` package for the following implementation of power analysis [@champley2017].

Expand Down Expand Up @@ -164,7 +164,7 @@
There are many conversions available in the package.
Take a look [here](https://easystats.github.io/effectsize/reference/index.html#effect-size-conversion).

This can also be dne directly by the user using the `t_to_d()` function:
This can also be done directly by the user using the `t_to_d()` function:

```{r}
t_to_d(
Expand All @@ -180,8 +180,8 @@
For the present application, the effect size obtained from `cohens_d()` (or any of the three approaches previously described) can be passed to the `d` argument.

```{r}
(result <- cohens_d(mpg ~ am, data = mtcars))

Check warning on line 183 in vignettes/statistical_power.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/statistical_power.Rmd,line=183,col=2,[implicit_assignment_linter] Call print() explicitly instead of relying on implicit printing behavior via '('.
(Ns <- table(mtcars$am))

Check warning on line 184 in vignettes/statistical_power.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/statistical_power.Rmd,line=184,col=2,[implicit_assignment_linter] Call print() explicitly instead of relying on implicit printing behavior via '('.

pwr.t2n.test(
n1 = Ns[1], n2 = Ns[2],
Expand Down
Loading