occurenceIndex: Occurence (or inverse occurence) index for categorical data

Description Usage Arguments Details Value Author(s)

View source: R/occurenceIndex.R

Description

This function calculates the dissimilarity index based on the (inverse) occurence index

Usage

1
2
occurenceIndex(dat, key = NULL, weights, simm = FALSE,
  inverse = TRUE)

Arguments

dat

the data

key

a character representing the unique key name for observations. For example, this could contain the name of patients in a health dataset.

weights

a character variable representing the name of the variable associated with the survey weights

simm

logical indicating whether a similarity should be returned

inverse

parameter indicating whether to return the inverse occurence frequency or the occurence frequency

Details

This calculates the pairwise dissimilarities for a dataset using the (inverse) occurence dissimilarity index

Value

A matrix of pairwise dissimilarities

Author(s)

Joshua Agterberg


jagterberg/catDist documentation built on May 21, 2019, 10:11 a.m.