Skip to content

Commit

Permalink
Cran 0.8 (#516)
Browse files Browse the repository at this point in the history
* version bump

* styler

* close #471

* Update interpret_bf.Rd

* add links

* Update effectsize.Rmd

* fix doi tag

* Update cran-comments.md

* revdev

* Update _pkgdown.yml

* update email

* update email

* fix link
  • Loading branch information
mattansb authored Oct 10, 2022
1 parent 3880fdb commit 45f6172
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 43 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ references.bib
hextools
^paper/.
^WIP/.
^dev/.
# Flip these two to no build vignettes:
# ^vignettes/(?!additional).*
^vignettes/additional
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ representative at an online or offline event.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at [email protected].
reported to the community leaders responsible for enforcement at [email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
16 changes: 8 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Type: Package
Package: effectsize
Title: Indices of Effect Size
Version: 0.7.9.2999
Version: 0.8.0
Authors@R:
c(person(given = "Mattan S.",
family = "Ben-Shachar",
role = c("aut", "cre"),
email = "[email protected]",
email = "[email protected]",
comment = c(ORCID = "0000-0002-4287-4801", Twitter = "@mattansb")),
person(given = "Dominique",
family = "Makowski",
Expand Down Expand Up @@ -44,7 +44,7 @@ Authors@R:
role = "rev",
email = "[email protected]",
comment = c(ORCID = "0000-0003-4586-7153")))
Maintainer: Mattan S. Ben-Shachar <[email protected]>
Maintainer: Mattan S. Ben-Shachar <[email protected]>
Description: Provide utilities to work with indices of effect size for a wide
variety of models and hypothesis tests (see list of supported models using
the function 'insight::supported_models()'), allowing computation of and
Expand All @@ -58,14 +58,14 @@ Depends:
Imports:
bayestestR (>= 0.13.0),
insight (>= 0.18.4),
parameters (>= 0.18.2),
performance (>= 0.9.2),
datawizard (>= 0.6.1),
parameters (>= 0.19.0),
performance (>= 0.10.0),
datawizard (>= 0.6.2),
stats,
utils
Suggests:
correlation (>= 0.8.1),
see (>= 0.7.1),
correlation (>= 0.8.2),
see (>= 0.7.3),
afex,
BayesFactor,
boot,
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# effectsize 0.7.0.9999
# effectsize 0.8.0

## Breaking Changes

Expand Down
8 changes: 4 additions & 4 deletions R/effectsize-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#' and hypothesis tests, such as [cohens_d()], [phi()], [eta_squared()], and
#' many more.
#'
#' See `vignette("effectsize", package = "effectsize")` for more details,
#' or `vignette(package = "effectsize")` for a full list of vignettes.
#' See [`vignette("effectsize", package = "effectsize")`](https://easystats.github.io/effectsize/articles/effectsize.html) for more details,
#' or [`vignette(package = "effectsize")`](https://easystats.github.io/effectsize/articles/) for a full list of vignettes.
#'
#' References: Ben-Shachar et al. (2020) <doi:10.21105/joss.02815>.
#' References: Ben-Shachar et al. (2020) \doi{10.21105/joss.02815}.
#'
#' @docType package
#' @aliases effectsize-package
#' @name effectsize-package
#' @keywords internal
"_PACKAGE"
"_PACKAGE"
1 change: 0 additions & 1 deletion R/interpret_bf.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#' interpret_bf(1)
#' interpret_bf(c(5, 2))
#'
#'
#' @references
#' - Jeffreys, H. (1961), Theory of Probability, 3rd ed., Oxford University
#' Press, Oxford.
Expand Down
15 changes: 12 additions & 3 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,32 @@ reference:
- datawizard::standardize_models
- parameters::standardize_info

- subtitle: "Correlations"
desc: >
Correlations are a standardized effect size of association
contents:
- correlation::correlation
- correlation::cor_test

- title: "Effect Size Conversion / Extraction"

- title: "Effect Size Conversion"

- subtitle: "From Test Statistics"
desc: >
Extract approximate effect sizes from their commonly associated test statistics
contents:
- F_to_eta2
- t_to_r
- F_to_eta2
- chisq_to_phi

- subtitle: "Between Effect Sizes"
desc: >
Approximate effect sizes by converting between other related effect sizes
contents:
- d_to_r
- oddsratio_to_riskratio
- d_to_u3
- eta2_to_f2
- oddsratio_to_riskratio
- odds_to_probs


Expand Down Expand Up @@ -126,6 +133,8 @@ navbar:
href: articles/anovaES.html
- text: "Standardized Parameters"
href: https://easystats.github.io/parameters/articles/standardize_parameters_effsize.html
- text: "Correlation Vignettes"
href: https://easystats.github.io/correlation/articles/index.html
- text: "Confidence Intervals"
href: reference/effectsize_CIs.html
- text: -------
Expand Down
13 changes: 9 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ DOI issues are a false positive.
* local installation: R 4.2.1 on Windows
* GitHub Actions
- Windows: devel, release, oldrel
- macOS: devel, release, oldrel, 4.0, 3.6, 3.5
- ubuntu-18.04: devel, release, oldrel
- macOS: devel, release, oldrel
- ubuntu-18.04: devel, release, oldrel, 4.0, 3.6
* win-builder: release


Expand All @@ -20,11 +20,16 @@ DOI issues are a false positive.

- Failed handshake with *shinyapps.io* is a false positive.
- Unavailable DOI link are false positives.
- Spelling mistakes are false positives.


## revdepcheck results

We checked 16 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 18 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We saw 1 new problems
* We failed to check 0 packages

### New problems

* statsExpressions - 1 new error. Package maintainer has been informed.
5 changes: 5 additions & 0 deletions dev/revdepcheck.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library(revdepcheck)

revdep_check(num_workers = 4)
revdep_report()
revdep_reset()
8 changes: 4 additions & 4 deletions man/effectsize-package.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/interpret_bf.Rd

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

34 changes: 18 additions & 16 deletions vignettes/effectsize.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,32 @@ M <- rbind(
cramers_v(M)
```

<!-- ## Parameter and Model Standardization -->
## Parameter and Model Standardization

<!-- Standardizing parameters (i.e., coefficients) can allow for their comparison within and between models, variables and studies. To this end, two functions are available: `standardize()`, which returns an updated model, re-fit with standardized data, and `standardize_parameters()`, which returns a table of standardized coefficients from a provided model [for a list of supported models, see the *insight* package; @luedecke2019insight]. -->
> Note: this functionality has been moved to the `parameters` and `datawizard` packages.
<!-- ```{r} -->
<!-- model <- lm(mpg ~ cyl * am, -->
<!-- data = mtcars) -->
Standardizing parameters (i.e., coefficients) can allow for their comparison within and between models, variables and studies. To this end, two functions are available: `standardize()`, which returns an updated model, re-fit with standardized data, and `standardize_parameters()`, which returns a table of standardized coefficients from a provided model [for a list of supported models, see the *insight* package; @luedecke2019insight].

<!-- standardize(model) -->
```{r}
model <- lm(mpg ~ cyl * am,
data = mtcars)
<!-- standardize_parameters(model) -->
<!-- ``` -->
datawizard::standardize(model)
<!-- Standardized parameters can also be produced for generalized linear models (GLMs; where only the predictors are standardized): -->
parameters::standardize_parameters(model)
```

<!-- ```{r} -->
<!-- model <- glm(am ~ cyl + hp, -->
<!-- family = "binomial", -->
<!-- data = mtcars) -->
Standardized parameters can also be produced for generalized linear models (GLMs; where only the predictors are standardized):

<!-- standardize_parameters(model, exponentiate = TRUE) -->
<!-- ``` -->
```{r}
model <- glm(am ~ cyl + hp,
family = "binomial",
data = mtcars)
parameters::standardize_parameters(model, exponentiate = TRUE)
```

<!-- `standardize_parameters()` provides several standardization methods, such as robust standardization, or *pseudo*-standardized coefficients for (generalized) linear mixed models [@hoffman2015longitudinal]. A full review of these methods can be found in the [*Parameter and Model Standardization* vignette](https://easystats.github.io/effectsize/articles/standardize_parameters.html). -->
`standardize_parameters()` provides several standardization methods, such as robust standardization, or *pseudo*-standardized coefficients for (generalized) linear mixed models [@hoffman2015longitudinal]. A full review of these methods can be found in the [*Parameter and Model Standardization* vignette](https://easystats.github.io/parameters/articles/standardize_parameters_effsize.html).

## Effect Sizes for ANOVAs

Expand Down
2 changes: 2 additions & 0 deletions vignettes/interpret.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ more believable.

## Correlation *r*

There can be used to interpret not only Pearson's correlation coefficient, but also Spearman's, $\phi$ (phi), Cramer's *V* and Tschuprow's *T*. Although Cohen's *w* and Pearson's *C* are _not_ a correlation coefficients, they are often also interpreted as such.

#### @funder2019evaluating

```r
Expand Down

0 comments on commit 45f6172

Please sign in to comment.