R/main-datautil.R
add_dis_age.RdCreates the disease-related age covariate vector based on the disease initiation times and adds it to the data frame
add_dis_age(data, t_init, id_var = "id", time_var = "age")A data frame with one column added. The new column will
be called dis_age. For controls, its value will be NaN.
Other data frame handling functions:
add_factor(),
add_factor_crossing(),
adjusted_c_hat(),
new_x(),
split()