Learn R Programming

kstMatrix (version 2.2-1)

kmdist: Compute the distance between a data set and a knowledge structure

Description

kmdist returns a named vector with the frequencies of distances between a set of response patterns and a knowledge structure. This vector can be used to compute, e.g., the Discrepancy Index (DI) or the Distance Agreement Coefficient (DA).

Usage

kmdist(data, struct)

Value

Distance distribution vector

Arguments

data

Binary matrix representing a set of response patterns

struct

Binary matrix representing a knowledge structure

See Also

Other Validating knowledge spaces: kmSRvalidate(), kmvalidate()

Examples

Run this code
kmdist(xpl$data, xpl$space)

Run the code above in your browser using DataLab