goodallIndex: Goodall Index (Versions 1,2,3, and 4) for categorical data

Description Usage Arguments Details Value Author(s)

View source: R/goodallIndex.R

Description

This function calculates the dissimilarity index based on Goodall

Usage

1
2
goodallIndex(dat, key = NULL, weights = NULL, simm = FALSE,
  type = 1, diag = FALSE)

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

type

a number in 1,2,3, or 4 indicating the the type of goodall index

Details

This calculates the pairwise dissimilarities for a dataset using the goodall dissimilarity index first proposed by Goodall.

Value

A matrix of pairwise dissimilarities

Author(s)

Joshua Agterberg


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