Function to Check the Dimensions of Inputs to longCat

Share:

Description

Function for checking the dimensions of y and times and returning a logical indicator indTime of whether individually varying times of observation were detected. Used internally by longCat, though it may be called by the user.

Usage

1
dimCheck(y, times)

Arguments

y

a data matrix or data frame in wide (as opposed to long) format with cases in rows and repeated observations in columns. At most, y can have 9 unique non-missing values.

times

time points used for the x-axis in plotting. Either a vector of the same length as the number of columns in y (i.e., all cases have the same times of observation), or a matrix of the same dimension as y (i.e., individually varying times of observation). Default is NULL and is assigned the value 1:ncol(y).

Author(s)

Stephen Tueller

References

Tueller, S. J., Van Dorn, R. A., and Bobashev, G. V. (2013). Visualization of Categorical Longitudinal and Times Series Data. Manuscript Under Review.

See Also

longCat.