Closed BjarteAAGNES closed 3 years ago
The nordcansurvival() first argument cancer_record_dataset is the name of the data.table containing the NORDCAN dataset of cancer records after pre-processing. This should not be changed.
A test could be to load an copy of an existing 9.0 environment containing all objects and functions, then replace the changed functions, then run the survival parts following the instructions for users.
I know this will take time… but then the changes are few and should be easy to get right. If you want we can examine the changes together before this test, on Thursday.
@HuidongTian I think this issue can be closed by you with reference to the commit solving the issue.
To be solved by Huidong and Bjarte 03.03 13.00:
Intro:
In _nordcanstatsurvival() the function _survivalstatistics() is called two times: one for 5-year period aggregation, and one for 10-year period aggregation. The infile argument to survival_statistics() SHOULD be explicit set to the files:
survival_file_analysis.dta_5 survival_file_analysis.dta_10
Further details:
The file names above COULD be changed to:
survival_file_analysis_5.dta survival_file_analysis_10.dta
The args cancer_record_dataset_path SHOULD be named infile ref Stata code template https://github.com/CancerRegistryOfNorway/nordcansurvival/blob/master/R/survival_statistics.R line 97
https://github.com/CancerRegistryOfNorway/nordcansurvival/blob/master/R/nordcansurvival.R
lines: 119 ...
https://github.com/CancerRegistryOfNorway/nordcansurvival/blob/master/R/survival_statistics.R
lines 67 ...
Compare to "template definition"
Thus the "hidden" definition in utils() SHOULD be visible and explicit in the above files/functions thus some corrections MUST be done also to https://github.com/CancerRegistryOfNorway/nordcansurvival/blob/master/R/utils.R where survival_file_analysis_path now is set in line 127
example Stata code from template:
5-year periods using survival_file_analysis_5.dta
10-year periods using survival_file_analysis_10.dta