Learn R Programming

configural (version 0.1.5)

fungible.cpa: Locate extrema of fungible criterion profile patterns

Description

Identify maximally similar or dissimilar criterion patterns in criterion profile analysis

Usage

# S3 method for cpa
fungible(
  object,
  theta = 0.005,
  Nstarts = 1000,
  MaxMin = c("min", "max"),
  silent = FALSE,
  ...
)

Value

A list containing the alternative weights and other fungible weights estimation parameters

Arguments

object

A fitted model object of class "cpa".

theta

A vector of values to decrement from R-squared to compute families of fungible coefficients.

Nstarts

Maximum number of (max) minimizations from random starting configurations.

MaxMin

Should the cosine between the observed and alternative weights be maximized ("max") to find the maximally similar coefficients or minimized ("min") to find the maximally dissimilar coefficients?

silent

Should current optimization values be printed to the console (FALSE) or suppressed (TRUE)?

...

Additional arguments

References

Wiernik, B. M., Wilmot, M. P., Davison, M. L., & Ones, D. S. (2020). Meta-analytic criterion profile analysis. Psychological Methods. tools:::Rd_expr_doi("10.1037/met0000305")

Examples

Run this code
mind <- cpa_mat(mindfulness ~ ES + A + C + Ex + O,
                cov_mat = mindfulness$r,
                n = harmonic_mean(vechs(mindfulness$n)),
                se_var_mat = cor_covariance_meta(mindfulness$r,
                                                 mindfulness$n,
                                                 mindfulness$sevar_r,
                                                 mindfulness$source),
                adjust = "pop")
mind_fung <- fungible(mind, Nstarts = 100)

Run the code above in your browser using DataLab