predict_df_discrete: Internal: Create a data frame for predictions (when risk...

View source: R/PAF_calc_discrete.R

predict_df_discreteR 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


graphPAF documentation built on May 29, 2024, 10:21 a.m.