simulate: simulate function to simulate a similar data set with similar...

View source: R/simulation_functions.R

simulateR Documentation

simulate function to simulate a similar data set with similar correlation matrix. modified from source code written by Tibor V. Varga from https://github.com/Tirgit/missCompare

Description

simulate function to simulate a similar data set with similar correlation matrix. modified from source code written by Tibor V. Varga from https://github.com/Tirgit/missCompare

Usage

simulate(rownum, colnum, corMat)

Arguments

rownum

number of rows of the original data matrix

colnum

number of columns of the original data matrix

corMat

correlation matrix.

Value

a matrix of the original size of your data matrix with simulated values (normalized)


BeanLabASU/metabimpute documentation built on Feb. 5, 2023, 11:41 p.m.