And then we follow the rules as the SAS used to impute the partial date in R. To get the last day of each month's imputation, we'd better use therollback()andceiling_date()functions in thelubridatepackage to get the correct day considering the leap years. In addition, others are the...
The paper will categorize missing dates into three status (whole date missing,month and day missing, only day missing), and utilize a systematic inductive method to impute the partial missing dates. A simple SAS macro will be included. This methodserves as a hint for handling missing dates in...