Internal: Create a data frame for predictions (when risk factor is discrete).
predict_df_discrete(riskfactor, refval, data)
A data frame where the categorical variable is set to its reference level
The name of the risk factor of interest in the dataset
The reference value for the risk factor
A dataframe containing variables used to fit the model