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

View source: R/PAF_calc_continuous.R

predict_df_continuousR Documentation

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)

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 May 29, 2024, 10:21 a.m.