check_correlation_matrix {oeli} | R Documentation |
Check if an argument is a correlation matrix
Description
This function checks whether the input is a symmetric, real matrix that fulfills the correlation matrix properties.
Usage
check_correlation_matrix(x, dim = NULL, tolerance = sqrt(.Machine$double.eps))
assert_correlation_matrix(
x,
dim = NULL,
tolerance = sqrt(.Machine$double.eps),
.var.name = checkmate::vname(x),
add = NULL
)
test_correlation_matrix(x, dim = NULL, tolerance = sqrt(.Machine$double.eps))
Arguments
x |
Object to check. |
dim |
An |
tolerance |
A non-negative |
.var.name |
[ |
add |
[ |
Value
Compare to check_matrix
.
[Package oeli version 0.5.2 Index]