date_b: Converts dates in a Biograph object to dates in another...

Description Usage Arguments Value Author(s) Examples

Description

Converts dates in a Biograph object to dates in another format. The function converts an entire Biograph object. It calls the function date_convert, which converts a vector of dates.

Usage

1
date_b(Bdata,selectday,format.out,covs)

Arguments

Bdata

Biograph object

selectday

If input date is in Century Month Code (year and month), the argument selectday gives the day of the month. Default value is one, the transition occurs on the 1st of the month. The argument may be omitted.

format.out

Format of output date

covs

Vector of covariates that are dates (that need to be converted too). The dates should be in the same format as the other dates.

Value

Biograph object with dates in new format (format.out)

Author(s)

Frans Willekens

Examples

1
2
    data(GLHS)
    bb<- date_b (Bdata=GLHS,selectday=1,format.out="day-mon-year",covs=c("marriage","LMentry"))

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