Description Usage Arguments Value
View source: R/CategoricalRiskFactorSrc.R
Validates categorical risk factor inputs are in correct ranges etc. Calculates directly computable risk factor parameters. Checks whether these are valid - some input combos are invalid, e.g. produce stratum risks > 1.
1 | fnValidateCategoricalRiskFactorInputs(lifetimeRisk, vFreq, vRelRisk)
|
lifetimeRisk |
population lifetime risk for the disease |
vFreq |
population frequency vector for strata (must sum to 1) |
vRelRisk |
relative risk vector for strata (one element must equal 1, this identifies the reference stratum) |
data.frame containing directly calculable risk factor parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.