
Extracts the Q3 matrices from the object returned by getResults()
q3FromRes.RdCollects Q3 matrices in a list of data frames.
Usage
q3FromRes(resultsObj, out = c("wide", "long" ), triangular = FALSE)Arguments
- resultsObj
The object returned by
getResults.- out
Specifies the output format.
"wide"gives a triangular matrix,"long"gives a long format table with the residual correlation in a separate column.- triangular
Logical: should the wide-format matrix be arranged in triangular shape?
Examples
### read exemplary results object
file <- system.file("extdata", "results.rda", package = "eatModel")
load(file)
q3 <- q3FromRes(res)