Nothing
## ================
## Complexity index
## ================
seqici <- function(seqdata, with.missing=FALSE, silent=TRUE) {
if (!inherits(seqdata,"stslist"))
stop("data is NOT a sequence object, see seqdef function to create one")
if(!silent) message(" [>] computing complexity index for ",nrow(seqdata)," sequences ...")
## Number of transitions
trans <- seqtransn(seqdata, with.missing=with.missing, norm=TRUE)
## Longitudinal Entropy
ient <- suppressMessages(
seqient(seqdata, with.missing=with.missing, norm=TRUE)
)
## Complexity index
comp.index <- sqrt(trans * ient)
colnames(comp.index) <- "C"
return(comp.index)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.