seqmissimplic | R Documentation |
This function identifies and visualizes states that best characterize
sequences with missing data at each position (time point), comparing them to
sequences without missing data at each position (time point). It is based on
the seqimplic function. For more information on the
methodology, see the seqimplic
documentation.
seqmissimplic(data, var = NULL, void.miss = TRUE, ...)
data |
Either a data frame containing sequences of a categorical
variable, where missing data are coded as |
var |
A vector specifying the columns of the dataset
that contain the trajectories. Default is |
void.miss |
Logical, if |
... |
parameters to be passed to the seqimplic function |
returns a seqimplic
object that can be plotted and printed.
Kevin Emery
# For illustration purpose, we simulate missing data on the mvad dataset,
# available in the TraMineR package. The state "joblessness" state has a
# higher probability of triggering a missing gap
## Not run:
data(mvad, package = "TraMineR")
mvad.miss <- seqaddNA(mvad, var = 17:86, states.high = "joblessness")
# The states that best characterize sequences with missing data
implic <- seqmissimplic(mvad.miss, var = 17:86)
# Visualization of the results
plot(implic)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.