Learn R Programming

kstMatrix (version 2.2-1)

kmvalidate: Validate a knowledge structure against a data set

Description

kmvalidate returns a list with three elements, a named vector (dist) with the frequencies of distances between a set of response patterns and a knowledge structure, the Discrepancy Index (DI), and the Distance Agreement Coefficient (DA).

Usage

kmvalidate(data, struct)

Value

A list with three elements:

dist

Distance distribution vector

DI

Discrepancy Index

DA

Distance Agreement Coefficient

Arguments

data

Binary matrix representing a set of response patterns

struct

Binary matrix representing a knowledge structure

Warning

The DA computation can take quite some time for larger item sets as the power set has to be computed. For item sets with around 30 items or more, it may even crash the system due to huge memory requests.

See Also

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

Examples

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

Run the code above in your browser using DataLab