LE2incidence | R Documentation |
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
).
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)
)
lst |
a vector of |
varmod |
list of variables and their grades. See details. |
varlen |
a vector with the number of grades of each variable. See 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.
an object of S3 class incidence
or a list of objects of S3 class incidence
.
Alberto Arcagni
var2prof
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.