# NOT RUN {
# Generate an example data set consisting of 10 rows (variables)
# and 200 columns (observations) by randomly drawing integers
# between 1 and 3, and a vector of class labels of length 200
# indicating that the first 100 observation belong to class 1
# and the other 100 to class 2.
mat <- matrix(sample(3, 2000, TRUE), 10)
cl <- rep(1:2, e = 100)
# Applying computeContClass to this data set
out <- computeContClass(mat, cl)
# generates the observed numbers of observations
out$mat.obs
# and the corresponding expected numbers of observations.
out$mat.exp
# }
Run the code above in your browser using DataLab