Package: RESIDE 0.4.0

Ryan Field

RESIDE: Rapid Easy Synthesis to Inform Data Extraction

Assists researchers with planning analysis prior to obtaining data from Trusted Research Environments (TREs), also known as safe havens. Marginal distributions of one or more related data frames can be exported from a TRE and imported elsewhere, where data can be synthesised from them, with or without user specified correlations, by sampling from a multivariate cumulative distribution (copula). The International Stroke Trial (IST) is included as an example dataset under the ODC-By licence, Sandercock et al. (2011) <doi:10.7488/ds/104>, Sandercock et al. (2011) <doi:10.1186/1745-6215-12-101>.

Authors:Ryan Field [aut, cre], David McAllister [aut], Claudia Geue [ctb]

RESIDE_0.4.0.tar.gz
RESIDE_0.4.0.zip(r-4.7-any)RESIDE_0.4.0.zip(r-4.6-any)RESIDE_0.4.0.zip(r-4.5-any)
RESIDE_0.4.0.tgz(r-4.6-any)RESIDE_0.4.0.tgz(r-4.5-any)
RESIDE_0.4.0.tar.gz(r-4.7-any)RESIDE_0.4.0.tar.gz(r-4.6-any)
RESIDE_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
RESIDE/json (API)

# Install 'RESIDE' in R:
install.packages('RESIDE', repos = c('https://hehta.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hehta/reside/issues

Pkgdown/docs site:https://hehta.github.io

Datasets:
  • IST - IST Dataset

On CRAN:

Conda:

4.48 score 1 stars 6 scripts 308 downloads 8 exports 94 dependencies

Last updated from:df35ebb66e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK221
source / vignettesOK224
linux-releaseOK179
macos-releaseOK174
macos-oldrelOK122
windows-develOK199
windows-releaseOK197
windows-oldrelOK124
wasm-releaseOK159

Exports:correlationexport_empty_cor_matrixexport_marginal_distributionsget_marginal_distributionsimport_cor_matriximport_marginal_distributionssynthesise_datasynthesize_data

Dependencies:backportsbestNormalizeBHbigmemorybigmemory.sributcherclasscliclockcodetoolscpp11crayondata.tablediagramdigestdoParalleldoRNGdplyrfarverfastglmforeachFormulafuturefuture.applygenericsggplot2globalsgluegowergtablehardhathmsipredisobanditeratorsKernSmoothlabelingLambertWlamWlatticelavalifecyclelistenvlobstrlubridatemagrittrMASSMatrixmvnfastnnetnortestnumDerivparallellypbvpillarpkgconfigplyrprettyunitsprodlimprogressprogressrpurrrR6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRDPrecipesreshape2rlangrngtoolsrpartS7scalesshapesimstudysparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetzdbutf8uuidvctrsviridisLitewithr

Synthesising Data from Marginal Distributions
Without Correlations | With correlations | Categorical variables | Multiple tables

Last update: 2026-09-30
Started: 2024-10-10

Worked Example Using Multiple Tables
Introduction | Setup | Summarise original data | Fit a logistic regression model on the original data | Get the marginal distributions | Export the marginal distributions | Reimport marginal distributions | Synthesise data from marginal distributions (without correlations) | Fit a logistic regression model on the synthesised data | Synthesise data with correlations | Fit a logistic regression model on the synthesised data with correlations

Last update: 2026-09-30
Started: 2026-09-30

Worked Example Using the IST Dataset
Introduction | Setup | Summarise original data | Fit a cox model on the original data | Get the marginal distributions | Export the marginal distributions | Reimport marginal distributions | Synthesise data from marginal distributions (without correlations) | Summarise the synthesised data | Fit a cox model on the simulated data | Synthesise data with correlations | Fit a cox model on the simulated data with correlations

Last update: 2026-09-30
Started: 2024-10-18

Exporting Marginal Distributions
Obtaining Marginal Distributions | Printing the Marginal Distributions Prior to Export | Files created by export_marginal_distributions()

Last update: 2024-10-18
Started: 2024-10-18

The RESIDE Package
Introduction | Methods | For TRE's | Generating Marginal Distributions | Exporting Marginal Distributions | For End Users | Importing Marginal Distributions | Data Simulation | Limitations | Binary Variables | Categorical Variables | Correlations

Last update: 2024-10-18
Started: 2024-10-10

Importing Marginal Distributions

Last update: 2024-10-10
Started: 2024-10-10