ind_excl_plot {ionr}R Documentation

Plot indicator exlusion results with and without excluded indicators

Description

Provides an overview of the indicator exclusion results. Marked(x) indicators are excluded in the indicator exclusion procedure. See ind_excl for details.

left

correlations between single indicator and outcome

right

correlations between sum-score and outcome with and without the marked indicators

Usage

ind_excl_plot(indicators, indicators2 = vector(), outcome,
  scalename = "scale", outcomename = "outcome",
  indicatornames = 1:ncol(indicators), tagged = vector(),
  tagged2 = vector(), location1 = "topleft", location2 = "topright",
  pcrit = 0.05, multi = 1, coruse = "everything", ci = "estimate")

Arguments

indicators

Set of numeric indicators (items) in a matrix.

indicators2

An additional set of indicators (e.g. informant-report )

outcome

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

scalename

A string for labelling the scale

outcomename

A string for labelling the outcome

indicatornames

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

tagged

items to be marked as excluded by the indicator exclusion procedure

tagged2

same as 'tagged' for second scale (e.g., informant report)

location1

Location for legends at left-side plot

location2

Location for legends at right-side plot

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

multi

influences cex of certain plot variables. Defaults to 1

coruse

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

ci

should output object and plot have 95 CI-s from corr.test. If you insert a number (e.g., ci=5000), then the CI-s are bootstrapped using cor.ci. Any other string results in no CI-s. r value in output matrix is taken from cor.

Value

See ind_excl


[Package ionr version 0.3.0 Index]