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

View source: R/PAF_calc_continuous.R

predict_df_continuousR Documentation

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

Description

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

Usage

predict_df_continuous(riskfactor, q_val, risk_q, data)

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

Value

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


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