covparams_mmes_se: Native-scale covariance parameters and standard errors

covparams_mmes_seR Documentation

Native-scale covariance parameters and standard errors

Description

Returns descriptor-defined native covariance parameters with delta-method standard errors computed from the fitted covariance-parameter uncertainty matrix.

Usage

covparams_mmes_se(object, term = NULL, rel_step = 1e-6)

Arguments

object

A fitted object of class "mmes".

term

Optional covariance-term name or numeric index. By default, all random and residual covariance terms are returned.

rel_step

Positive relative step used to numerically differentiate each CovarianceFactor native reporting callback.

Details

The fitted theta_se matrix describes uncertainty in the reported covPar coordinates. For each covariance structure, covparams_mmes_se numerically evaluates the Jacobian of its descriptor's native reporting callback and applies the multivariate delta method,

V_{native} = J V_{covPar} J^{\mathsf T}.

The Jacobian is assembled jointly for all selected terms, preserving cross-term covariance in the returned vcov attribute rather than assuming that terms are independent. Consequently, coupled transformations use the complete covariance information. For example, the standard error of a dsm() level variance accounts for uncertainty and covariance in both the overall variance and its variance ratio. Likewise, usm() standard errors account for all relevant normalized Cholesky parameters.

The transformation is available for every built-in CovarianceFactor family supported by covparams_mmes(); user-defined ownm() structures use their descriptor-provided native_report callback.

Parameters marked fixed in the covariance descriptor contribute no independent sampling uncertainty: their rows and columns in theta_se are excluded before transformation. A native quantity involving both fixed and free parameters can still have a nonzero standard error through its free parameters. Both fixed and estimated native quantities are returned. Unavailable uncertainty affects only native quantities that depend on the corresponding parameters, not independent reported terms.

The same table is stored automatically in object$covParNativeSE by mmes().

Value

A data frame containing term, factor, parameter, estimate, StdError, and Zratio. A zero standard error is reported for a fully fixed native quantity, with Zratio=NA. The vcov attribute contains the full native-scale covariance matrix in the same order as the returned rows, including covariance between terms.

See Also

covparams_mmes, mmes, vsm

Examples

## Not run: 
fit <- mmes(Yield ~ Env,
            random = ~ vsm(dsm(Env), ism(Name)),
            rcov = ~ units, data = DT_example)
covparams_mmes_se(fit)
fit$covParNativeSE

## End(Not run)

sommer documentation built on Oct. 24, 2026, 1:08 a.m.