Description Usage Arguments Examples
This function takes a SHG output from runSHG() and reformats it by longitudinal age. It can take some time to run. It returns these columns: cigday, cigyears, cigstat, for each age in the range of ages. It is called internally by riskFactorSimulator(), and was not intended for direct use by the user. see riskFactorSimulator().
1 | reformatSHG(ages, DAT)
|
ages |
the range of ages for each person in the SHG cohort (ie: 45:90) |
DAT |
The SHG output data, see runSHG() |
1 2 3 | SHG_output <- runSHG(100, gender="M", 1950, 1)
ages <- 45:90
reformatted_SHG_output <- reformatSHG(ages, SHG_output)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.