varTrans {nadiv} | R Documentation |
Transforms ASReml-R gamma sampling variances to component scale
Description
The inverse of the Average Information matrix in an ASReml-R object produces the sampling variances of the (co)variance components on the gamma scale. This function scales these variances to the original component scale. This allows for Confidence Intervals to be constructed about the variance component estimates.
Usage
varTrans(asr.object)
Arguments
asr.object |
Object from a call to |
Value
Returns a numeric vector of variances for each variance component in an ASReml-R model.
Author(s)
Examples
## Not run:
library(asreml)
ginvA <- ainverse(warcolak)
ginvD <- makeD(warcolak[, 1:3])$listDinv
attr(ginvD, "rowNames") <- as.character(warcolak[, 1])
attr(ginvD, "INVERSE") <- TRUE
warcolak$IDD <- warcolak$ID
warcolak.mod <- asreml(trait1 ~ sex,
random = ~ vm(ID, ginvA) + vm(IDD, ginvD),
data = warcolak)
summary(warcolak.mod)$varcomp
sqrt(varTrans(warcolak.mod)) # sqrt() so can compare with standard errors from summary
## End(Not run)
[Package nadiv version 2.18.0 Index]