Library: | xclust |
See also: | discrim distance lpdist |
Quantlet: | aerlb | |
Description: | computes the Lachenbruch-Mickey unbiased estimate of the actual discrimination error rate |
Usage: | p = aerlb(x1, x2) | |
Input: | ||
x1 | n1 x p matrix, observations of sample 1 | |
x2 | n2 x p matrix, observations of sample 2 | |
Output: | ||
p | 2 x 1 vector, the estimate of the actual error rate (AER) |
library("xplore") library("xclust") randomize(0) x1 =normal(100, 2) x2 = normal(50, 2) + 0.8 p = aerlb(x1, x2) p
Contents of p [1,] 0.25 0.28