longCat-class: longCat Class for Longitudinal Categorical Data

longCat-classR Documentation

longCat Class for Longitudinal Categorical Data

Description

This S4 class represents longitudinal categorical data, including both raw and sorted data, along with associated metadata such as time points, labels, and grouping information. It is designed to facilitate the analysis and visualization of such data.

Slots

y

A matrix representing the raw longitudinal categorical data with cases in rows and repeated observations in columns.

y.sorted

A matrix representing the sorted longitudinal categorical data, analogous to y.

dim

An integer vector indicating the dimension of the y matrix.

times

A matrix of time points corresponding to each observation in y.

times.sorted

A matrix of sorted time points, analogous to times.

Labels

Character vector of labels for the categorical states represented in y.

factors

Numeric vector containing the unique values in y.

IndTime

Logical indicating if times represents individually varying times of observation.

nfactors

Integer indicating the number of unique factors in y.

sorted

Logical indicating if the data in y has been sorted.

ascending

Logical indicating the direction of sorting.

group

A matrix indicating group membership for each case.

group.sorted

A matrix of sorted group membership, analogous to group.

groupLabels

Character vector of labels for the groups.

order.y

A matrix with identification and sorting information for each case.

order.y.sorted

A matrix of sorted identification and sorting information, analogous to order.y.

events

A matrix representing events data with cases in rows and events in columns.

event.times

A matrix of times corresponding to each event in events.

events.sorted

A matrix of sorted events data, analogous to events.

event.times.sorted

A matrix of sorted event times, analogous to event.times.

eventLables

(Typo in original, should be 'eventLabels') Character vector of labels for the events represented in events.

Author(s)

Stephen J. Tueller


stueller/longCatEDA documentation built on March 9, 2024, 4:08 a.m.