ind_excl_inc: Incrementally calls ind_excl_step

Description Usage Arguments Value Examples

View source: R/ind_excl_inc.R

Description

See ind_excl for details.

Usage

1
2
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

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

ionr documentation built on May 2, 2019, 11:25 a.m.

Related to ind_excl_inc in ionr...