create_df_marginal_comparisons.Rd
Given a dataframe with the variable of interest and a vector of lower and
upper percentiles, the function creates two new columns called low
and
high
corresponding to the quantiles of interest.
create_df_marginal_comparisons(dat, var, percentiles, by_var)
A dataframe with two new columns, low
and high
, to be used for
marginal comparisons.