indexSelfConstruction: Self construction profile

Description Usage Arguments Value Author(s) References Examples

View source: R/measures.r

Description

TBD

Usage

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

round

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

Value

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

Author(s)

Mark Heckmann, José Antonio González Del Puerto

References

TBD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.