Easily add a categorical covariate to a data frame
add_factor(data, x, id_var = "id")A data frame with one column added. The new column will
have same name as the variable passed as input x.
Other data frame handling functions:
add_dis_age(),
add_factor_crossing(),
adjusted_c_hat(),
new_x(),
split()