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

View source: R/PAF_calc_discrete.R

predict_df_discreteR Documentation

Create a data frame for predictions (when risk factor is discrete).

Description

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 it's reference level


graphPAF documentation built on Sept. 23, 2022, 1:06 a.m.