Export an empty correlation matrix
export_empty_cor_matrix.Rd
A function to export a correlation matrix with the required variables as a csv file.
Usage
export_empty_cor_matrix(
marginals,
folder_path,
file_name = "correlation_matrix.csv",
create_folder = TRUE
)
Details
This function will export an empty correlation matrix
as a csv file, it will contain all the necessary variables including
dummy variables for factors. Dummy variables for factors may contain
a missing category to represent missing data. Correlations should be
added to the empty CSV and the imported using the
import_marginal_distributions
function.
Correlations should be supplied using rank order correlations.
The correlation matrix should be symmetric and positive semi definite.
Examples
if (FALSE) { # \dontrun{
marginals <- import_marginal_distributions()
export_empty_cor_matrix(
marginals,
folder_path = tempdir()
)
} # }