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

NEW: API #391

Merged
merged 43 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1f802cb
ANOVA API: simple aov table
mattansb Oct 20, 2021
8179967
ANOVA API: simple anova table
mattansb Oct 20, 2021
45e7d87
more ANOVA API
mattansb Oct 21, 2021
af8eb68
new API vignette
mattansb Oct 21, 2021
6e51627
make mlm ANOVA API compatible
mattansb Oct 21, 2021
e600b26
mlm API
mattansb Oct 21, 2021
1473805
fix: API vignette
mattansb Oct 21, 2021
fee07e6
clean up for standardize.default API
mattansb Oct 21, 2021
981fb82
Update effectsize.BFBayesFactor.R
mattansb Oct 21, 2021
28ea437
almost done with ANOVA API for parameters_model
mattansb Oct 24, 2021
5514c01
rename .es_aov API functions
mattansb Oct 24, 2021
f1d0c9b
Update eta_squared.R
mattansb Oct 24, 2021
dafdcd5
final ANOVA ES API for model_parameters
mattansb Oct 24, 2021
f8a4cff
oops
mattansb Oct 24, 2021
0c5fefe
fix: incorrectly names MS column
mattansb Oct 24, 2021
d96575d
use datawiz instead of paramters
mattansb Oct 25, 2021
8d5b454
Merge pull request #395 from easystats/main
mattansb Nov 7, 2021
e666f1d
fixup some parameters_model issues
mattansb Nov 7, 2021
0dbf9d7
`eta_squared()` family now supports `afex::mixed()` models
mattansb Nov 21, 2021
f975c9c
Update eta_squared.R
mattansb Nov 21, 2021
2749eed
prep for print approx
mattansb Nov 21, 2021
ebdf31f
Update effectsize_API.Rmd
mattansb Nov 21, 2021
cedf250
v bump
mattansb Nov 21, 2021
823feeb
Update print.effectsize_table.R
mattansb Nov 21, 2021
4593feb
clean up code
mattansb Nov 23, 2021
061e108
prep for dealing with offset offset
mattansb Nov 23, 2021
3d79d28
Deal with offset
mattansb Nov 23, 2021
0616ad3
Update effectsize_API.Rmd
mattansb Nov 23, 2021
de7f311
Update standardize_parameters.R
mattansb Nov 23, 2021
d453a69
Update standardize.models.R
mattansb Nov 24, 2021
f98939c
fix: tests for std models
mattansb Nov 24, 2021
fd27824
Update effectsize_API.Rmd
mattansb Nov 24, 2021
732f401
add offsets z tests
mattansb Nov 24, 2021
f990c06
Update standardize_parameters.R
mattansb Nov 25, 2021
019bc65
fix: vignette failing
mattansb Nov 25, 2021
a90cde1
finalize dealing with offsets
mattansb Nov 25, 2021
6e15410
survival models can now be stdized with default method
mattansb Nov 29, 2021
39721f9
Update standardize.models.R
mattansb Nov 29, 2021
91481d2
More standardize_info info in the vignette
mattansb Nov 29, 2021
571b52a
`standardize()` for multivariate models standardizes the (multivariat…
mattansb Nov 30, 2021
27eacda
Update DESCRIPTION
mattansb Nov 30, 2021
df74255
Update standardize_parameters.R
mattansb Nov 30, 2021
b762d5b
revert post-hoc standardize_parameters API
mattansb Nov 30, 2021
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
9 changes: 6 additions & 3 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 and Standardized Parameters
Version: 0.5.0.2
Version: 0.5.0.9
Authors@R:
c(person(given = "Mattan S.",
family = "Ben-Shachar",
Expand Down Expand Up @@ -53,9 +53,9 @@ Depends:
Imports:
bayestestR (>= 0.10.5),
insight (>= 0.14.3),
parameters (>= 0.15.0),
parameters (>= 0.15.0.1),
performance (>= 0.8.0),
datawizard (>= 0.2.0),
datawizard (>= 0.2.1.9001),
stats,
utils
Suggests:
Expand Down Expand Up @@ -85,6 +85,9 @@ Suggests:
spelling,
testthat,
tidymodels
Remotes:
easystats/parameters,
easystats/datawizard
VignetteBuilder:
knitr
Encoding: UTF-8
Expand Down
7 changes: 4 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ S3method(rb_to_cles,numeric)
S3method(standardize,Surv)
S3method(standardize,bcplm)
S3method(standardize,clm2)
S3method(standardize,coxme)
S3method(standardize,coxph)
S3method(standardize,default)
S3method(standardize,mediate)
S3method(standardize,mlm)
S3method(standardize,wbgee)
S3method(standardize,wbm)
S3method(standardize_info,default)
S3method(standardize_parameters,bootstrap_model)
S3method(standardize_parameters,bootstrap_parameters)
S3method(standardize_parameters,default)
S3method(standardize_parameters,mediate)
S3method(standardize_parameters,model_fit)
S3method(standardize_parameters,parameters_model)
export(.es_aov_simple)
export(.es_aov_strata)
export(.es_aov_table)
export(F_to_d)
export(F_to_epsilon2)
export(F_to_eta2)
Expand Down
7 changes: 5 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# effectsize 0.5.0.1
# effectsize 0.5.0.9

## Breaking Changes

- `pearsons_c()` effect size column name changed to `Pearsons_c` for consistency.

## New features

- `eta_squared()` family now supports `afex::mixed()` models.
- `cles()` for estimating common language effect sizes.
- `rb_to_cles()` for converting rank-biserial correlation to Probability of superiority.

Expand All @@ -15,7 +16,9 @@

## Bug fixes

- `eta_squared()`: fixed a bug that caused `afex_aov` models with more than 2 within-subject factros to return incorrect effect sizes for the lower level factors ( #389 ).
- `standardize()` for multivariate models standardizes the (multivariate) response.
- `standardize()` for models with offsets standardizes offset variables according to `include_response` and `two_sd` ( #396 ).
- `eta_squared()`: fixed a bug that caused `afex_aov` models with more than 2 within-subject factors to return incorrect effect sizes for the lower level factors ( #389 ).

# effectsize 0.5.0

Expand Down
9 changes: 9 additions & 0 deletions R/docs_extra.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,12 @@
#' @rdname effectsize_CIs
#' @name effectsize_CIs
NULL


#' `effectsize` API
#'
#' Read the [*Support functions for model extensions*](https://easystats.github.io/effectsize/articles/effectsize_API.html) vignette.
#'
#' @rdname effectsize_API
#' @name effectsize_API
NULL
2 changes: 1 addition & 1 deletion R/effectsize.BFBayesFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ effectsize.BFBayesFactor <- function(model, type = NULL, verbose = TRUE, test =
mu <- 0
D <- samps$delta
} else {
mu <- as.numeric(gsub("Null, mu=", "", model@denominator@shortName))
mu <- model@numerator[[1]]@prior$mu
D <- (samps$mu - mu) / sqrt(samps$sig2)
}

Expand Down
2 changes: 1 addition & 1 deletion R/effectsize.htest.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ effectsize.htest <- function(model, type = NULL, verbose = TRUE, ...) {
return(out)
} else if (grepl("One-way", model$method)) {
# one way anove ----
if (approx <- grepl("not assuming", model$method, fixed = TRUE) && verbose) {
if ((approx <- grepl("not assuming", model$method, fixed = TRUE)) && verbose) {
warning("`var.equal = FALSE` - effect size is an approximation.", call. = FALSE)
}

Expand Down
Loading