fungible: Locate extrema of fungible weights for regression and related...

Description Usage Arguments Value Author(s) References Examples

View source: R/fungible.R

Description

Generates fungible regression weights (Waller, 2008) and related results using the method by Waller and Jones (2010).

Usage

1
2
3
4
5
6
7
8
fungible(
  object,
  theta = 0.005,
  Nstarts = 1000,
  MaxMin = c("min", "max"),
  silent = FALSE,
  ...
)

Arguments

object

A fitted model object. Currently supported classes are: "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

Value

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

Author(s)

Niels Waller, Jeff Jones, Brenton M. Wiernik. Adapted from fungible::fungibleExtrema().

References

Waller, N. G. (2008). Fungible weights in multiple regression. Psychometrika, 73(4), 691–703. doi: 10.1007/s11336-008-9066-z

Waller, N. G., & Jones, J. A. (2009). Locating the extrema of fungible regression weights. Psychometrika, 74(4), 589–602. doi: 10.1007/s11336-008-9087-7

Examples

1
2
3
4
5
6
7
8
9
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)

configural documentation built on Jan. 19, 2021, 1:06 a.m.