Description Usage Arguments Examples
View source: R/diagnosticPlots.R
This function creates diagnostic plots after the SHG, and LC simulation have been ran.
1 | diagnosticPlots(gender, birth_cohort, riskFactorSimulator_out)
|
gender |
either "F" for female or "M" for male |
birth_cohort |
the year of birth of the cohort |
riskFactorSimulator_out |
The output after simulating the risk factors |
1 2 3 | SHG_out <- runSHG(100, gender="M", 1950, 1)
ANS_f <- riskFactorSimulator(gender="F", birth_cohort = 1950, SHG_out = SHG_out, ages = 45:90, seed = 1)
diagnosticPlots(gender="M", 1950, riskFactorSimulator_out = ANS_f$outputOnly)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.