simulate_corr_matrix: Simulate correlation matrix

Description Usage Arguments

View source: R/simulate_corr_matrix.R

Description

Simulate correlation matrix or any other matrix. Values are normally distributed around the mean and standard deviation.

Usage

1
2
3
4
5
corr.matrix <- simulate.corr.matrix(60)
corr.matrix <- simulate.corr.matrix(nnodes = 40, mean = 0, sd = 0.5,
   shape = "upper")
corr.matrix <- simulate.corr.matrix(nnodes = 180, mean = 100, sd = 6,
   shape = "lower")

Arguments

nnodes

Number of nodes

mean

Number of individuals in dataset

sd

Add significant SNPs (logical)

shape

Shape of the correlation matrix ("full","upper","lower")


norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.