CLASSDIFFRATE

Share:

Description

A function calculates classification difference rate between two factors. It is used in interpreting info stored in EMFASTICA object.

Usage

1
CLASSDIFFRATE(factor1, factor2)

Arguments

factor1

First factor.

factor2

Second factor of the same length as the First factor.

Value

answer

The percentage of instances when factor1[i] is not equal factor2[i].

Examples

1
2
3
4
5
## An example evaluates the classification difference rate
## between two classification results in the form of factors
fac1<-factor(c(1,4,2,3,1,1,3,3,1,2,2,1))
fac2<-factor(c(3,1,2,2,1,2,4,3,2,3,1,1))
CLASSDIFFRATE(fac1, fac2)