NHSRdatasets icon indicating copy to clipboard operation
NHSRdatasets copied to clipboard

Move "data origin" code into a data-raw folder

Open francisbarton opened this issue 6 months ago • 3 comments

As suggested in the R packages book.

Instead of under 'Working files'.

Check all code still works to build datasets while we're at it.

francisbarton avatar Jan 23 '24 10:01 francisbarton

Some initial work on this (for the covid19 dataset) has been done in my fork of this project. A PR will be submitted once issue #69 is resolved.

francisbarton avatar Jan 31 '24 21:01 francisbarton

Data sourcing and preparation scripts are not currently present for the LOS model, A&E attendances, stranded patient model and synthetic NEWS data. We really ought to have the code for these processes available if at all possible, for reproducibility reasons.

Some information about the synthetic NEWS data is reconstructable from the vignette.

francisbarton avatar Jan 31 '24 21:01 francisbarton

Again, I'm not sure you will get these, as the preparation was not the original use case, it was to have a package with small datasets to be used in training. Although the prep would be a nice tutorial. LOS_model was me fiddling with it in Excel until it performed the interaction I wanted it to. I don't have a script for that I'm afraid, as it's entirely made up. I think the stranded patient model synthetic news ones have some related blog posts on the old website. Not sure if still around.

chrismainey avatar Feb 01 '24 13:02 chrismainey