data(GLHS)
# Example 1:dates in covariates are converted to age
covsCMC <- c("marriage","TE")
surveyA <- CMC.ages(GLHS,covsCMC)
# Example 2:dates in covariates are not converted to age
covsCMC <- NULL
surveyA <- CMC.ages(GLHS,covsCMC)
Run the code above in your browser using DataLab