check_cov_lower | R Documentation |
Ensures that the covariance parameters define a positive definite covariance matrix. It takes the vector (ρ_1, σ^2_1, ..., ρ_q, σ^2_q, τ^2) and checks if all ρ_k>0, all σ_k^2>=0, and τ^2>0.
check_cov_lower(cv, q)
cv |
( |
q |
( |
logical(1)
with TRUE
if all conditions above are
fulfilled.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.