ind_excl_inc {ionr}R Documentation

Incrementally calls ind_excl_step

Description

See ind_excl for details.

Usage

ind_excl_inc(indicators, outcome, indicatornames = 1:ncol(indicators),
  pcrit = 0.05, verbose = F, coruse = "everything")

Arguments

indicators

Set of numeric indicators (items) in a matrix.

outcome

A numeric outcome vector. Indicators and outcome can be simulated with scale_sim

indicatornames

An array of strings for labelling the outcome. Default to numbers from 1 to n of indicators

pcrit

a p-value characterising the ‘significance’ of difference between correlations—here called ‘significance of indicator exclusion’ (SONE). Look it up from Table 2 in Vainik, Mõttus et al 2015, or simulate using optimal_p function

verbose

option for observing steps for debugging. Defaults to FALSE

coruse

argument for function cor(). Defaults to 'everything', as simulations have no missing data.

Value

Provides the results of a single step in indicator exclusion procedure. See example for details

Examples

## Create a scale-outcome set that violates ION. Only 2 last indicators out of 8
## relate to the outcome, the others just relate to the 2 indicators
set.seed(466)
a<-scale_sim(n=2500, to_n=2, tn_n=6)
# run the exclusion procedure. Pcrit taken from Table 2 in Vainik et al., 2015,
# European Journal of Personality
res=ind_excl_inc(a[[1]],a[[2]], pcrit=0.0037)
# which indicators does the procedure exclude?
res


[Package ionr version 0.3.0 Index]