risk_quantiles {graphPAF} | R Documentation |
Return the vector of risk quantiles for a continuous risk factor.
Description
Return the vector of risk quantiles for a continuous risk factor.
Usage
risk_quantiles(
riskfactor,
data,
model,
S = 1,
q = seq(from = 0.01, to = 0.99, by = 0.01)
)
Arguments
riskfactor |
The name of the risk factor of interest in the dataset. A character vector |
data |
A dataframe containing variables used to fit the model |
model |
The fitted model |
S |
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 |
q |
The desired risk quantiles |
Value
A named vector of size S giving the risk factor quantiles
[Package graphPAF version 2.0.0 Index]