Learn R Programming

Biograph (version 2.0.6)

ChangeObservationWindow.t: Changes observation window to period between two points in time

Description

Observation starts at starttime and ends at endtime.

Usage

ChangeObservationWindow.t(Bdata, starttime, endtime,covs.dates)

Arguments

Bdata
Biograph object
starttime
Observation starts at starttime. Time is measured in unit used in Biograph object.
endtime
Observation ends at endtime. Time is measured in unit used in Biograph object.
covs.dates
Covariates having dates

Value

Examples

Run this code
 #  The following example defines observation window 
 # as period between Century Month Code (CMC) 500 and CMC 900 (survey = GLHS)
 data (GLHS)
 z <- ChangeObservationWindow.t (GLHS,starttime=500,endtime=800,covs.dates=c("marriage","LMentry"))

Run the code above in your browser using DataLab