Learn R Programming

Biograph (version 2.0.6)

ChangeObservationWindow.e: Changes observation window to period between two transitions

Description

Observation starts at time of entry into given state (entrystate) and ends at time of entry into another given state (exitstate). If exitstate = NULL, then observation ends at last date for which data are available. Entry into entrystate and entry into exitstate must lie in original observation window.

Usage

ChangeObservationWindow.e(Bdata, entrystate, exitstate)

Arguments

Bdata
Biograph object
entrystate
Observation starts at time of entry into entry state
exitstate
Entry into exitstate implies end of observation. If exitstate = NA, observation ends at end of initial observation window

Value

Examples

Run this code
 #  The following example defines observation window 
 # as period between labour force entry and survey date. 
 data(GLHS)
 entrystate <- "J"
 exitstate <- NA
 GLHS2 <- ChangeObservationWindow.e (GLHS,entrystate,exitstate)

Run the code above in your browser using DataLab