check_cov_lower {varycoef} | R Documentation |
Check Lower Bound of Covariance Parameters
Description
Ensures that the covariance parameters define a positive definite covariance
matrix. It takes the vector
and checks if
all
, all
, and
.
Usage
check_cov_lower(cv, q)
Arguments
cv |
( |
q |
( |
Value
logical(1)
with TRUE
if all conditions above are
fulfilled.
Examples
# first one is true, all other are false
check_cov_lower(c(0.1, 0, 0.2, 1, 0.2), q = 2)
check_cov_lower(c(0 , 0, 0.2, 1, 0.2), q = 2)
check_cov_lower(c(0.1, 0, 0.2, 1, 0 ), q = 2)
check_cov_lower(c(0.1, 0, 0.2, -1, 0 ), q = 2)
[Package varycoef version 0.3.4 Index]