Learn R Programming

graphPAF (version 2.0.0)

predict_df_continuous: Internal: Create a data frame for predictions (when risk factor is continuous).

Description

Internal: Create a data frame for predictions (when risk factor is continuous).

Usage

predict_df_continuous(riskfactor, q_val, risk_q, data)

Value

A data frame where the distribution continuous risk factor so at an individual level, risk is at the q_val-quantile or below

Arguments

riskfactor

The name of the risk factor of interest in the dataset

q_val

The risk quantile to match to

risk_q

Estimated risk quantiles

data

A dataframe containing variables used to fit the model