Learn R Programming

RESIDE (version 0.3.2)

import_cor_matrix: Import a correlation matrix

Description

Imports a correlation matrix from a csv file generated by export_empty_cor_matrix

Usage

import_cor_matrix(file_path = "./correlation_matrix.csv")

Value

a matrix of correlations that can be used with synthesise_data

Arguments

file_path

A path to the csv file, Default: './correlation_matrix.csv'

Details

A function to import the user specified correlations generated from the csv file exported by the export_empty_cor_matrix function. Correlations should be entered into the CSV file, using rank order correlations. The correlation matrix should be symmetric and be positive semi definite.

See Also

export_empty_cor_matrix is.positive.semi.definite

Examples

Run this code
if (FALSE) {
  import_cor_matrix("correlation_matrix.csv")
}

Run the code above in your browser using DataLab