LE2incidence {parsec}R Documentation

Computes the incidence matrices of lexicographic linear extensions of a profile poset.

Description

The function generates the incidence matrices of the lexicographic linear extensions of a profile poset, given the variables (argument varmod or varlen) and a list of complete orders on them (argument lst).

Usage

LE2incidence(
    lst,
    varmod = lapply(as.list(varlen), function(lst) 1:lst),
    varlen = sapply(varmod, length)
)
## Default S3 method:
LE2incidence(
    lst,
    varmod = lapply(as.list(varlen), function(lst) 1:lst),
    varlen = sapply(varmod, length)
)
## S3 method for class 'list'
LE2incidence(
    lst,
    varmod = lapply(as.list(varlen), function(x) 1:x),
    varlen = sapply(varmod, length)
)

Arguments

lst

a vector of characters, or a list of specifies the names of the variables in increasing order. See details.

varmod

list of variables and their grades. See details.

varlen

a vector with the number of grades of each variable. See details.

Details

Argument lst is a list of chracter vectors. Each vector lists variable names in increasing order.

List varmod and vector varlen must be named so as to identify the variables they refer to. Profiles are generated as combinations of the variables' grades. The names of the profiles are the grades of the variables concatenated, after the variables order in varmod/varlen. See var2prof for more details about these arguments.

Value

an object of S3 class incidence or a list of objects of S3 class incidence.

Author(s)

Alberto Arcagni

See Also

var2prof

Examples

Lambda <- getlambda(A < B, C < D)
plot(Lambda)
lst <- LE(Lambda)
vl <- c(A = 2, B = 2, C = 2, D = 2)
lstZeta <- LE2incidence(lst, varlen = vl)
for (x in lstZeta)
    plot(x)

[Package parsec version 1.2.7 Index]