aiCI | R Documentation |
Produces the 1-alpha Upper and Lower Confidence Limits for the variance components in an ASReml-R model.
aiCI(asr.model, Dimnames = NULL, alpha = 0.05)
asr.model |
Object from a call to |
Dimnames |
A vector of characters if names are desired for the output.
If not specified, the default labels from the |
alpha |
A numeric value indicating the level of Type I error for constructing the Confidence Intervals. |
Variances from the inverse of the Average Information matrix of an ASReml
model are translated according to the varTrans
function and
used in constructing the 1-alpha Confidence Interval.
A matrix
is returned with a row for each variance component.
The three columns correspond to the Lower Confidence Limit, estimate from
the asreml
model, and Upper Confidence Limit for each variance
component.
The vector of Dimnames
should match the same order of variance
components specified in the model.
aiFun
## 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
aiCI(warcolak.mod)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.