Learn R Programming

Biograph (version 1.0)

CMC.years: CMC at transition to year of transition

Description

The function converts dates in CMC to dates in years. The year is a real variable and includes fraction of year

Usage

CMC.years(survey, covsCMC)

Arguments

survey
Biograph object
covsCMC
Covariates that relate to events and dates at these events.

Value

  • Biograph object with dates in CMC replaced by dates in years (real variables)

See Also

YearTrans

Examples

Run this code
data(GLHS)
  covsCMC <- c("marriage","TE")
  surveyY <- CMC.years(GLHS,covsCMC)

Run the code above in your browser using DataLab