Description Usage Arguments Details Value Author(s) Examples
It realizes the transformation of the table that contains the durations in every modality of the longitudinal variable in the table that it groups for periods of time
1 | durationtotableA(x,periodos)
|
x |
a data frame containing ID, Modality of the Longitudinal Variable, Duration |
periodos |
a vector containing the duration of each period time to do a groups |
This function transforms the table that contains the durations passed by the individuals in every modality of a longitudinal variable, in the table that groups these modalities in periods of time. That is to say, in the table that contains the quantity of time that an individual remains in a category of the longitudinal variable, in every period of time
Conteo |
a data frame with categories by number of time units |
Martha Lucia Corrales <martha.corrales@usa.edu.co> & Campo Elias Pardo <cepardot@unal.edu.co>
1 2 | #data(zonas)
#tableA1<-durationtotableA(zonas$zona1,c(360,240,60,150,160,230))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.