An R package which allows data to be simulation from marginal distributions obtained from Trusted Research Environments (TREs).
The latest release of this package can be installed from CRAN:
install.packages("RESIDE")
Additionally the development version of this package can be installed using devtools or remotes:
install.packages("devtools")
devtools::install_github("hehta/RESIDE")
install.packages("remotes")
remotes::install_github("hehta/RESIDE")
There are two main functions:
This function will get the marginal distributions and store them in an R object. See the documentation on exporting marginal distributions for further information.
This function will export the marginal distributions to csv files. See the documentation on exporting marginal distributions for further information.
Once you have obtained the marginal distributions from a TRE, you can import them and simulated data using the following functions:
This function will import the marginal distributions from the csv files provided by a TRE and store them in an R object. See the documentation on importing marginal distributions for further information.
This function will synthesise data based on the imported marginal distributions. See the documentation on synthesising data for further information.
A worked example using the International Stroke Trial is available in the documentation.
This work was supported by the UKRI Strength in Places Fund (SIPF) Competition, project number 107140. The project title is SIPF The Living Laboratory driving economic growth in Glasgow through real world implementation of precision medicine.
