anova.ma_psychmeta: Wald-type tests for moderators in psychmeta meta-analyses

Description Usage Arguments Value Note Examples

View source: R/methods_anova.R

Description

This function computes Wald-type pairwise comparisons for each level of categorical moderators for an ma_psychmeta object, as well as an ombnibus one-way ANOVA test (equal variance not assumed).

Currently, samples across moderator levels are assumed to be independent.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'ma_psychmeta'
anova(
  object,
  ...,
  analyses = "all",
  moderators = NULL,
  L = NULL,
  ma_obj2 = NULL,
  ma_method = c("bb", "ic", "ad"),
  correction_type = c("ts", "vgx", "vgy"),
  conf_level = NULL
)

Arguments

object

A psychmeta meta-analysis object.

...

Additional arguments.

analyses

Which analyses to to test moderators for? Can be either "all" to test moderators for all meta-analyses in the object (default) or a list containing one or more of the arguments construct, construct_pair, pair_id, k_min, and N_min. See filter_ma() for details. Note that analysis_id should not be used. If k_min is not supplied, it is set to 2.

moderators

A character vector of moderators to test. If NULL, all categorical moderators are tested.

L

A named list with with elements specifying set of linear contrasts for each variable in moderators. (Not yet implemented.)

ma_obj2

A second psychmeta meta-analysis object to compare to object (Not yet implemented.)

ma_method

Meta-analytic methods to be included. Valid options are: "bb", "ic", and "ad"

correction_type

Types of meta-analytic corrections to be included. Valid options are: "ts", "vgx", and "vgy"

conf_level

Confidence level to define the width of confidence intervals (defaults to value set when object was fit)

Value

An object of class anova.ma_psychmeta. A tibble with a row for each construct pair in object and a column for each moderator tested. Cells lists of contrasts tested.

Note

Currently, only simple (single) categorical moderators (one-way ANOVA) are supported.

Examples

1
2
3
4
ma_obj <- ma_r(rxyi, n, construct_x = x_name, construct_y = y_name,
moderators = moderator, data = data_r_meas_multi)

anova(ma_obj)

Example output

-----------------------------------------------------  psychmeta version 2.4.2  --

Please report any bugs to github.com/psychmeta/psychmeta/issues
or issues@psychmeta.com

We work hard to produce these open-source tools for the R community.
Please cite psychmeta when you use it in your research:
  Dahlke, J. A., & Wiernik, B. M. (2019). psychmeta: An R package for
    psychometric meta-analysis. Applied Psychological Measurement, 43(5), 415-416.
    https://doi.org/10.1177/0146621618795933

---------------------------------------------------------------  Version check  --Version check not run.
 **** Running ma_r: Meta-analysis of correlations **** 
  pair_id construct_x construct_y moderator F value df_num df_denom level_1
1       1           X           Y moderator    23.6      1     36.5       1
2       2           X           Z moderator    43.6      1     37.8       1
3       3           Y           Z moderator    28.7      1     37.6       1
  level_2 mean_1 mean_2  diff CI_LL_95 CI_UL_95
1       2  0.397  0.245 0.152   0.0887    0.216
2       2  0.422  0.236 0.186   0.1292    0.243
3       2  0.405  0.228 0.178   0.1106    0.245
Warning messages:
1: Problem with `mutate()` input `anova`.
ℹ The `x` argument of `as_tibble.matrix()` must have unique column names if `.name_repair` is omitted as of tibble 2.0.0.
Using compatibility `.name_repair`.
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
ℹ Input `anova` is `purrr::map(.data$data, .anova.ma_psychmeta, conf_level)`.
ℹ The error occurred in group 1: pair_id = 1, construct_x = "X", construct_y = "Y". 
2: Problem with `mutate()` input `anova`.
ℹ The `x` argument of `as_tibble.matrix()` must have unique column names if `.name_repair` is omitted as of tibble 2.0.0.
Using compatibility `.name_repair`.
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
ℹ Input `anova` is `purrr::map(.data$data, .anova.ma_psychmeta, conf_level)`.
ℹ The error occurred in group 1: pair_id = 1, construct_x = "X", construct_y = "Y". 
3: The `x` argument of `as_tibble.matrix()` must have unique column names if `.name_repair` is omitted as of tibble 2.0.0.
Using compatibility `.name_repair`.
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 

psychmeta documentation built on June 1, 2021, 9:13 a.m.