generate_submatrix: Generates submatrix with a given correlation structure.

Description Usage Arguments Details Value

Description

Called from create_cor_matrix; Uses runif to generate random numbers between a lower and upper bound (as specified in create_cor_matrix depending on user's strength indication - strong, med, weak) for the strength of the correlation.

Usage

1
generate_submatrix(dim, lower_bound, upper_bound)

Arguments

dim

Dimensions of the submatrix

lower_bound

Lower boundary for generated random numbers

upper_bound

Upper boundary for generated random numbers

Details

Designed only to be called by the create_cor_matrix function.

Value

A matrix with a strong, medium, or weak correlation structure.


emartchenko/mvsimstudy documentation built on May 24, 2019, 5:04 a.m.