Return the vector of risk quantiles for a continuous risk factor.
risk_quantiles(
riskfactor,
data,
model,
S = 1,
q = seq(from = 0.01, to = 0.99, by = 0.01)
)
A named vector of size S giving the risk factor quantiles
The name of the risk factor of interest in the dataset. A character vector
A dataframe containing variables used to fit the model
The fitted model
The number of randomly selected individuals for which risk is measured (defaults to 1). Let to perhaps 100 if risk factor involved in interactions in model
The desired risk quantiles