# a simple example of package application to obtain first poset-based results
# definition of the variables by their number of modalities
variables <- c(2, 2, 2)
# definition of the threshold
threshold <- c("112", "211")
# extraction of all of the possible profiles from variables; the
# function returns an object of class "wprof", weighted profiles: by default,
# wheigths/frequencies are set equal to 1
profiles <- var2prof(varlen = variables)
# the following function creates matrices describing the poset, and
# provide all the results related to it
eval <- evaluation(profiles, threshold, nit = 10^5, maxint = 10^3)
# the results can be summarized, the method returns a data.frame object that
# describes the profiles and you can also summarize
summary(summary(eval))
# a method of the plot function returns the Hasse diagram, a frequency
# distribution of the threshold, the identification function, the rank
# distribution of each profile through a barplot, and the relative gap.
plot(eval)
Run the code above in your browser using DataLab