Skip to contents

Simulation designs

Specifications of simulation designs.

simdesign()
Design specification for simulating datasets
simdesign_discunif()
Uniform disc sampling design specification
simdesign_mvtnorm()
Multivariate normal design specification
simdesign_norta()
NORTA-based design specification

Data simulation

Functions that generate data from the simulation designs.

simulate_data()
Simulate design matrix
simulate_data_conditional()
Simulate data which satisfies certain conditions

Visualization

Plotting tools for correlation networks.

plot_cor_network()
Visualize fixed correlation structure as a network
plot_estimated_cor_network()
Visualize estimated correlation matrix as a network

Helper for simulation designs

Functions to help set up simulation designs.

process_truncate_by_iqr()
Truncate columns of datamatrix at datamatrix specific thresholds
process_truncate_by_threshold()
Truncate columns of datamatrix at specified thresholds
do_processing()
Post-processing of datamatrix
estimate_final_correlation()
Estimate correlation matrix via simulation
function_list()
Apply list of functions to input
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
quantile_functions_from_data() quantile_function_from_density() quantile_function_from_quantiles()
Helper to estimate quantile functions from data for NORTA

Helper for (correlation) matrices

Functions to help set up and work with (correlation) matrices.

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
contains_constant()
Check if matrix contains constant column(s)
is_collinear()
Check if matrix is collinear
is_cor_matrix()
Check if matrix is a correlation matrix

Miscellaneous

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
get_from_function_list()
Extract individual functions from function_list
get_names_from_function_list()
Extract names of individual functions from function_list
partial()
Define partial function