Learn R Programming

graphPAF (version 2.0.0)

predict_df_discrete: 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)

Value

A data frame where the categorical variable is set to its reference level

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