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

Description Usage Arguments Value Author(s) Examples

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

1
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

Biograph object with information on new observation window and transitions during the new observation window.

Author(s)

Frans Willekens

Examples

1
2
3
4
5
6
 #  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)

Biograph documentation built on May 1, 2019, 8:48 p.m.