disjoint {elisr}R Documentation

Multiple scaling – the disjoint way

Description

disjoint() returns a multiple, disjointedly scaled version of the specified data frame. This so called msdf sets up the building block for further analysis with overlap() (type ?overlap).

Usage

disjoint(
  df,
  mrit_min = 0.3,
  negative_too = FALSE,
  sclvals = NULL,
  use = "pairwise.complete.obs"
)

Arguments

df

a data frame (with more than two items and unique, non-NA column names).

mrit_min

a numeric constant of length 1 to specify the marginal corrected item-total correlation. Its value is in the range of 0-1. The default is set to .3.

negative_too

a logical constant indicating whether reversed items are included in the analysis. The default is set to FALSE.

sclvals

a numeric vector of length 2 indicating the start- and endpoint of a scale. Use something like c(min,max).

use

an optional string to specify how missing values enter the analysis. See use in cor for details. The default is set to pairwise.complete.obs.

Details

use clarifies how to set up a correlation matrix in the presence of missing values. In a typical scaling process this happens at least twice. First, when determining the core items (the two items in the correlation matrix with the highest linear relationship). Second, when an item is proposed for an emerging scale.

Note that disjoint() uses cor's default method pearson.

Value

A multiple scaled data frame (msdf).

References

Müller-Schneider, T. (2001). Multiple Skalierung nach dem Kristallisationsprinzip / Multiple Scaling According to the Principle of Crystallization. Zeitschrift für Soziologie, 30(4), 305-315. https://doi.org/10.1515/zfsoz-2001-0404

Examples

# Use only positive correlations
disjoint(mtcars, mrit_min = .4)

# Include negative correlations
disjoint(mtcars, mrit_min = .4, negative_too = TRUE, sclvals = c(1,7))

# Change the treatment of missing values
disjoint(mtcars, mrit_min = .4, use = "all.obs")

[Package elisr version 0.1.1 Index]