Package: simdata 0.4.1

Michael Kammer

simdata: Generate Simulated Datasets

Generate simulated datasets from an initial underlying distribution and apply transformations to obtain realistic data. Implements the 'NORTA' (Normal-to-anything) approach from Cario and Nelson (1997) and other data generating mechanisms. Simple network visualization tools are provided to facilitate communicating the simulation setup.

Authors:Michael Kammer [aut, cre]

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

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

Bug tracker:https://github.com/matherealize/simdata/issues

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

On CRAN:

Conda:

data-generationregressionsimulationstatistics

5.36 score 7 stars 22 scripts 341 downloads 28 exports 12 dependencies

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

TargetResultTimeFilesSyslog
linux-develOK130
source / vignettesOK208
linux-releaseOK151
macos-releaseOK191
macos-oldrelOK164
windows-develOK79
windows-releaseOK111
windows-oldrelOK72
wasm-releaseOK120

Exports:as_function_listcolapply_functionscontains_constantcor_from_uppercor_to_covcor_to_upperdo_processingestimate_final_correlationfunction_listget_from_function_listget_names_from_function_listis_collinearis_cor_matrixoptimize_cor_matpartialplot_cor_networkplot_estimated_cor_networkprocess_truncate_by_iqrprocess_truncate_by_thresholdquantile_function_from_densityquantile_function_from_quantilesquantile_functions_from_datasimdesignsimdesign_discunifsimdesign_mvtnormsimdesign_nortasimulate_datasimulate_data_conditional

Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixmvtnormpkgconfigrlangvctrs

simdata: NORTA based simulation designs
Introduction | Outline of NORTA | Caveats of NORTA | Comparison to other methods | Workflow in simdata | Quantile functions for some common distributions | Example | Load dataset | Estimate target correlation | Define marginal distributions | Automatically | Manually | What to use? | Simulate data | Results | R session information | References

Last update: 2024-12-03
Started: 2021-07-05

simdata: A package for creating simulated datasets
Introduction | Data generation with this package | Workflow with this package | Packages used | Example 1: Independent data, no transformation | Example 2: Independent data, with transformation | Example 3: Realistic, complex data | Visualisation of initial correlation matrix | Simulation and visualisation of final data | Visualisation of estimated correlation network | Post-processing | Truncation | Standardization | Advanced simulation setup | Rejection sampling | User defined simdesign classes | Other initial distributions | Using real data | Aspects of high-dimensional setups | Parallelization | Partial functions | R session information | References

Last update: 2024-06-26
Started: 2019-11-26

simdata: Technical documentation
Introduction | simdesign S3 class | Subclassing simdesign | Simulation of data | simulate_data method | Implemented methods | simulate_data_conditional function | R session information

Last update: 2021-07-05
Started: 2021-07-05

Readme and manuals

Help Manual

Help pageTopics
Helper to apply functionsapply_array
Create 'function_list' object from list of functionsas_function_list
Apply list of functions to column of objectcolapply_functions
Check if matrix contains constant column(s)contains_constant
Build correlation matrixcor_from_upper
Convert correlation matrix to covariance matrixcor_to_cov
Convert correlation matrix to specification used by 'cor_from_upper'cor_to_upper
Post-processing of datamatrixdo_processing
Estimate correlation matrix via simulationestimate_final_correlation
Apply list of functions to inputfunction_list
Extract individual functions from 'function_list'get_from_function_list
Extract names of individual functions from 'function_list'get_names_from_function_list
Check if matrix is collinearis_collinear
Check if matrix is a correlation matrixis_cor_matrix
Find pairwise initial correlation for NORTA from target correlationoptimize_cor_for_pair
Find initial correlation matrix for NORTA from target correlationoptimize_cor_mat
Define partial functionpartial
Visualize fixed correlation structure as a networkplot_cor_network plot_cor_network.default plot_cor_network.simdesign_mvtnorm
Visualize estimated correlation matrix as a networkplot_estimated_cor_network
Truncate columns of datamatrix at datamatrix specific thresholdsprocess_truncate_by_iqr
Truncate columns of datamatrix at specified thresholdsprocess_truncate_by_threshold
Helper to estimate quantile functions from data for NORTAquantile_functions_from_data quantile_function_from_density quantile_function_from_quantiles
Design specification for simulating datasetssimdesign
Uniform disc sampling design specificationsimdesign_discunif
Multivariate normal design specificationsimdesign_mvtnorm
NORTA-based design specificationsimdesign_norta
Simulate design matrixsimulate_data simulate_data.default simulate_data.simdesign
Simulate data which satisfies certain conditionssimulate_data_conditional