R/rags2ridges.R
covMLknown.Rd
Function that performs maximum likelihood estimation of the covariance matrix, with various types of assumptions on its structure.
covMLknown(
Y,
covMat = NULL,
corMat = NULL,
corType = "none",
varType = "none",
nInit = 100
)
Data matrix
. Variables assumed to be represented by columns.
A positive-definite covariance matrix
. When specified,
the to-be-estimated covariance matrix is assumed to be proportional to the
specified covariance matrix. Hence, only a constant needs to estimated.
A positive-definite correlation matrix
. When specified,
the to-be-estimated covariance matrix is assumed to have this correlation
structure. Hence, only the marginal variances need to be estimated.
A character
, either "none"
(no structure on the
correlation among variate assumed) or "equi"
(variates are
equi-correlated).
A character
, either "none"
(no structure on the
marginal variances of the variates assumed) or "common"
(variates
have equal marginal variances).
An integer
specifying the maximum number of iterations
for likelihood maximization when corType="equi"
.
The maximum likelihood estimate of the covariance matrix
under the specified assumptions on its structure.
The function gives the maximum likelihood estimate of the covariance matrix.
The input matrix Y
assumes that the variables are represented by the
columns.
When simultaneously covMat=NULL
, corMat=NULL
,
corType="none"
and varType="none"
the covML
-function is
invoked and the regular maximum likelihood estimate of the covariance matrix
is returned.