diagnosticPlots: Creates diagnostic plots

Description Usage Arguments Examples

View source: R/diagnosticPlots.R

Description

This function creates diagnostic plots after the SHG, and LC simulation have been ran.

Usage

1
diagnosticPlots(gender, birth_cohort, riskFactorSimulator_out)

Arguments

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

Examples

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)

ekhco/LCsim documentation built on Nov. 4, 2019, 11:50 a.m.