predict_df_discrete {graphPAF} | R Documentation |
Internal: Create a data frame for predictions (when risk factor is discrete).
Description
Internal: Create a data frame for predictions (when risk factor is discrete).
Usage
predict_df_discrete(riskfactor, refval, data)
Arguments
riskfactor |
The name of the risk factor of interest in the dataset |
refval |
The reference value for the risk factor |
data |
A dataframe containing variables used to fit the model |
Value
A data frame where the categorical variable is set to its reference level
[Package graphPAF version 2.0.0 Index]