next up previous contents
Next: Components of ldamat objects Up: Other data types for Previous: For more information

Unbalanced data: the ldamat function

An alternative data type to ldframe for grouping together time series is the ldamat class. Given a number of ldats objects y1, y2,...,yn, the command

Y <- ldamat(y1,y2,...,yn)
creates an ldamat object containing the n time series. The time series do not need common t components, and do not need to be of the same length.
Example 3.10: we have three ldats objects rat.1, rat.2 and rat.3 representing the growth rates of three different rats under three different treatments. We could group them all into one ldamat object with the command
\begin{Example}
\gt ratmat <- ldamat(control=rat.1,tmt.2=rat.2,tmt.3=rat.3)
\gt ...
 ...tmt.3 :
 [1] [2] [3] [4] [5] 
TIME 1 2 3 4 5
 OBS 61 86 109 120 129\end{Example}
Printing out the ldamat object as we have done here displays the component time series of the object, one by one. Note that every component time series has a name, which we specified in the call to ldamat; if these names are not specified default names will be given.



David Smith
4/2/1998