boot_inv_eff {ccpsyc}R Documentation

Bootstrapped pairwise differences in psychometric function of groups.

Description

Bootstrapped pairwise differences in psychometric function of groups.

Usage

boot_inv_eff(
  n,
  n_sample,
  df,
  items,
  group,
  eff_sizes = c("SDI2", "UDI2", "WSDI", "WUDI", "dmacs"),
  seed = 2711
)

Arguments

n

Number of bootstraps

n_sample

Number of participants to sample

df

Data to resample

items

Items to resample for the model as vector of strings

group

String variable indicating grouping variable

eff_sizes

Effect sizes to be returned

seed

Seed for replicability

Value

Returns a dataframe with the bootstrapped effect sizes based on the invariance_eff function in this package for two country comparisons.

Examples


two_country <- dplyr::filter(example, country %in% c("NZ" , "BRA"))
boot_inv_eff(n = 10,
             n_sample = 200, df = two_country, group = "country",
              items = paste0("voice",1:3, "m"))
              

[Package ccpsyc version 0.2.6 Index]