h_get_theta_from_cov: Obtain Theta from Covariance Matrix

View source: R/utils.R

h_get_theta_from_covR Documentation

Obtain Theta from Covariance Matrix

Description

Obtain unstructured theta from covariance matrix.

Usage

h_get_theta_from_cov(covariance)

Arguments

covariance

(matrix) of covariance matrix values.

Details

If the covariance matrix has NA in some of the elements, they will be replaced by 0 (non-diagonal) and 1 (diagonal). This ensures that the matrix is positive definite.

Value

Numeric vector of the theta values.


mmrm documentation built on Oct. 7, 2024, 1:14 a.m.