View source: R/FUN_covariance_basic.R
| dsm | R Documentation |
Diagonal heterogeneous covariance structure. The returned dimensionless covariance shape is intended for use inside vsm, which supplies the single overall variance scale.
dsm(x, values = NULL, fixed = NULL, theta = NULL)
x |
Variable or design defining the covariance levels. |
values |
Optional positive starting variances, one per level. |
fixed |
Logical vector of length q-1 indicating which variance-ratio parameters are fixed. |
theta |
Optional q by q diagonal starting covariance matrix; if supplied, its diagonal replaces values. |
For q levels, dsm uses the first variance as the internal scale reference and estimates q-1 positive variance ratios,
K=\mathrm{diag}(1,r_2,\ldots,r_q).
The ratios are optimized on log scales and reported on their natural positive scale.
A list containing the incidence/design matrix in Z and a compiled CovarianceFactor v2 descriptor in covFactor, for use inside vsm.
vsm, mmes.
## Not run:
vsm(dsm(environment), ism(genotype))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.