#secanc This program can be used to make simple visualizations of Swedish cancer incidence trends using the Frames and Chart Haskell packages, and data accessible in text format via The National Board of Health and Welfare. The text data currently covers the period from 1958 (when the Swedish Cancer Registry was funded) to 2011, while the publicly accesible web interface only covers the period from 1970. Note, however, that the interpretation of incidence trends may be problematic trends due to changes in coding practice and diagnostics, and that this may especially affect for the first years after the start of the registry.
In order to use the program (given that the mentioned Haskell packages are installed):
- Download and unzip the compressed file with incidence data. The included file
IncWebR2011head.txtconsists of the first three lines from the file
IncWebR2011.txtin this archive and is used to define the structure of the frame (if the whole
IncWebR2011.txtis used for this, some column types are not correctly recognized).
- Build the program (with
ghc --make secanc, using GHC).
- In order to generate and save a chart of time trends in SVG format, run
./secanc -i icd startyear endyear column filename. E.g.
./secanc -i 2050 1960 2011 bef2000 aml.svgwill save a plot of incidence trends for acute myeloid leukemia 1960--2011, age standardized to the Swedish population 2000, to
aml.svg. Supported columns (which currently do not include the columns with raw number of cases rather than incidence) and their descriptions are listed in the
secanc.hs, and different codes and their descriptions are listed in
CodeAliases.hs(and there are also English descriptions in the file
Read me Sweden.txtin the zipfile). It is also possible to plot the cumulative probability of developing cancer for a set of incidence columns by running
./secanc -c icd startyear endyear startcol endcol filename. E.g.
./secanc -c 2050 1960 2011 1 15 amlcum.svgwill save a plot of the cumulative probability of developing acute myeloid leukemia up to age 74 (incidence columns 1--15) during the period 1960--2011.