Learn R Programming

Biograph (version 1.0)

ChangeObservationWindow.e: Change observation window to period between two transitions CHECK

Description

Observation starts at time of entry into given state (entrystate) and ends at time of entry into another given state (exitstate). If exitstate = NA, then observation ends at survey date. Entry into entrystate and entry into exitstate must lie in original observation window.

Usage

ChangeObservationWindow.e(survey, entrystate, exitstate)

Arguments

survey
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.

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