simdata0.4.1 package

Generate Simulated Datasets

apply_array

Helper to apply functions

as_function_list

Create function_list object from list of functions

colapply_functions

Apply list of functions to column of object

contains_constant

Check if matrix contains constant column(s)

cor_from_upper

Build correlation matrix

cor_to_cov

Convert correlation matrix to covariance matrix

cor_to_upper

Convert correlation matrix to specification used by cor_from_upper

do_processing

Post-processing of datamatrix

estimate_final_correlation

Estimate correlation matrix via simulation

function_list

Apply list of functions to input

get_from_function_list

Extract individual functions from function_list

get_names_from_function_list

Extract names of individual functions from function_list

is_collinear

Check if matrix is collinear

is_cor_matrix

Check if matrix is a correlation matrix

optimize_cor_for_pair

Find pairwise initial correlation for NORTA from target correlation

optimize_cor_mat

Find initial correlation matrix for NORTA from target correlation

partial

Define partial function

plot_cor_network

Visualize fixed correlation structure as a network

plot_estimated_cor_network

Visualize estimated correlation matrix as a network

process_truncate_by_iqr

Truncate columns of datamatrix at datamatrix specific thresholds

process_truncate_by_threshold

Truncate columns of datamatrix at specified thresholds

quantile_functions_from_data

Helper to estimate quantile functions from data for NORTA

simdesign_discunif

Uniform disc sampling design specification

simdesign_mvtnorm

Multivariate normal design specification

simdesign_norta

NORTA-based design specification

simdesign

Design specification for simulating datasets

simulate_data_conditional

Simulate data which satisfies certain conditions

simulate_data

Simulate design matrix

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.

  • Maintainer: Michael Kammer
  • License: GPL-3
  • Last published: 2024-12-03