durationtotableA: Groups by Time Periods

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
durationtotableA(x,periodos)    

Arguments

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

Details

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

Value

Conteo

a data frame with categories by number of time units

Author(s)

Martha Lucia Corrales <martha.corrales@usa.edu.co> & Campo Elias Pardo <cepardot@unal.edu.co>

Examples

1
2
#data(zonas)
#tableA1<-durationtotableA(zonas$zona1,c(360,240,60,150,160,230))

qha documentation built on May 2, 2019, 1:44 p.m.

Related to durationtotableA in qha...