Learn R Programming

Biograph (version 2.0.6)

OverviewEpisodes: Overview of episodes

Description

Computes several indicators of the episodes in the life history data: number of episodes, types of episodes (open or closed) and total and mean durations of episodes.

Usage

OverviewEpisodes(Bdata,seq.ind)

Arguments

Bdata
input data: Biograph object
seq.ind
individual state sequences. If seq.ind is missing, the function calls Sequences.ind to obtain the individual state sequences.

Value

n
Sample size
ne
Total number of episodes
nt
Total number of transitions
types
Number of episodes by type [open. closed]
sojourn
Total sojourn time in each type of episode

Details

Open intervals start before onset of observation (left truncated) or continue after observation ends (right censored). Closed intervals start and end during the observation period.

References

Willekens (2011)

Examples

Run this code
 data (GLHS)
 z<- Parameters (GLHS)
 seq.ind <- Sequences.ind (GLHS$path,attr(GLHS,"param")$namstates)
 z <- OverviewEpisodes(Bdata=GLHS,seq.ind=seq.ind)


Run the code above in your browser using DataLab