Learn R Programming

parsec (version 1.1.1)

parsec-package: PARtial orders in Socio-EConomics

Description

The package implements tools for basic partial order analysis and for multidimensional evaluation (e.g. of poverty and material deprivation) with ordinal variables. Its main goal is to provide socio-economic scholars with an integrated set of elementary functions for multidimensional evaluation, based on ordinal information. The package is organized in four main parts. The first two comprise functions for data management and basic partial order analysis; the third and the fourth are devoted to evaluation and implement both the poset-based approach and a more classical counting procedure.

Arguments

Details

ll{ Package: parsec Type: Package Version: 1.1.1 Date: 2016-04-27 License: GPL (>= 2) }

Examples

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