indexSelfConstruction {OpenRepGrid}R Documentation

Self construction profile

Description

TBD

Usage

indexSelfConstruction(
  x,
  self,
  ideal,
  others = c(-self, -ideal),
  method = "euclidean",
  p = 2,
  normalize = TRUE,
  round = FALSE
)

Arguments

x

A repgrid object.

self

Numeric. Index of self element.

ideal

Numeric. Index of ideal element.

others

Numeric. Index(es) of self related "other" elements (e.g. father, friend).

method

The distance or correlation measure:

  • Distances: euclidean, manhattan, maximum, canberra, binary, minkowski

  • Correlations: pearson, kendall, spearman

p

The power of the Minkowski distance, in case minkowski is used as argument for method, otherwise it is ignored.

normalize

Normalize values?

round

Round average rating scores for 'others' to closest integer?

Value

List object of class indexSelfConstruction, containing the results from the calculations:

References

TBD

Examples

# using distance measures
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "euclidean")
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "manhattan")
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "minkowski", p = 3)

# using correlation measures
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "pearson")
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "spearman")

# using not-normalized distances
indexSelfConstruction(boeker, 1, 2, c(3:11), method = "euclidean", normalize = FALSE)

# printing the results (biplot only works with)
cp <- indexSelfConstruction(boeker, 1, 2, c(3:11))
cp$grid  # grid with self, ideal and others
biplot2d(cp$grid, center = 4)  # midopoint centering

[Package OpenRepGrid version 0.1.15 Index]