Learn R Programming

icamix (version 1.0.6)

CLASSDIFFRATE:

Description

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

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab