checkGamma {graphicalExtremes} | R Documentation |
HR parameter matrix checks
Description
Checks whether the matrix given is a valid Huesler-Reiss parameter matrix
in the role of \Gamma
, \Theta
, or \Sigma
, respectively.
Usage
checkGamma(Gamma, alert = NULL, tol = get_small_tol(), returnBoolean = FALSE)
checkSigmaTheta(
M,
k,
full,
matrixName = "Sigma",
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkTheta(
Theta,
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkSigma(
Sigma,
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
checkMatrix(
M,
name = c("Gamma", "Sigma", "Theta")[1],
k = NULL,
full = FALSE,
tol = get_small_tol(),
alert = NULL,
returnBoolean = FALSE
)
is_valid_Gamma(M, tol = get_small_tol())
is_valid_Theta(Theta, k = NULL, full = FALSE, tol = get_small_tol())
is_valid_Sigma(Sigma, k = NULL, full = FALSE, tol = get_small_tol())
Arguments
Gamma |
Numeric |
alert |
Passed to |
tol |
Numeric scalar. Values below this are considered as zero, when zeros are required (e.g. row-sums). |
returnBoolean |
Logical scalar, set to |
M |
Numeric matrix, |
k |
|
full |
Logical. If |
matrixName |
Name of the matrix to be used in alerts/error messages. |
Theta |
Numeric |
Sigma |
Numeric |
name |
Name of the input matrix, indicating which other function to call. |
Details
The function is_valid_*
are a wrapper around check*
, with arguments
alert=FALSE
and returnBoolean=TRUE
.
Value
For check*
, the input matrix, passed through ensure_matrix_symmetry_and_truncate_zeros
.
For is_valid_*
, a boolean indicating whether the input is a valid parameter matrix.
See Also
Other input validation functions:
check_graph()
,
check_partial_matrix_and_graph()
,
ensure_matrix_symmetry()