View source: R/extract.varcov.r
| extract.varcov | R Documentation | 
Get the covariance matrix from an already parsed .cov output file.
extract.varcov(text)
| text | A character or numeric string containing the .cov output. | 
A named list. The sole item in the list should have a name that is the estimation method used (e.g. "First Order Conditional Estimation with Interaction"). That named item will be a data frame containing the covariance matrix.
function not to be called alone - is called by qP function nm.covmat.extract inside get.covmat
nm.covmat.extract, get.covmat
## Not run: 
nm.unzip(
  path = file.path(getOption("qpExampleDir"),"run11"),
  run = "run11",extension = ".cov"
)
covText = scan(
  file = file.path(getOption("qpExampleDir"),"run11","run11.cov"),
  what = "character",sep = "\n", quiet = T
)
## the heart of the function: parse space delimited text into a matrix
cov = extract.varcov(covText[-1])
## warning: this matrix is LARGE. View only start and end of output
head(cov)
tail(cov)
file.remove(file.path(getOption("qpExampleDir"),"run11","run11.cov")) ## clean things up
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.