cor_from_upper | R Documentation |
Use to specify correlation matrix in convenient way by giving entries of the upper triangular part.
cor_from_upper(n_var, entries = NULL)
n_var |
Integer, number of variables (= rows = columns of matrix). |
entries |
Matrix of correlation entries. Consists of 3 columns (variable_1, variable_2, correlation) that specify both variables and corresponding correlation in the upper triangular part of the matrix (i.e. variable_1 < variable_2) . |
Matrix with user supplied entries.
cor_to_upper
cor_from_upper(2, rbind(c(1, 2, 0.8)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.