extract.precision.error: Extracting errors from PRECISION (both non-FLEX and FLEX)...

Description Usage Arguments Value Examples

Description

Extract all errors in the error_store list from PRECISION output produced from either precision.simulate.flex; reduce the PRECISION output for plotting.

Usage

1
extract.precision.error(precision.obj.path = NULL, precision.obj.name)

Arguments

precision.obj.path

the path and document name for the PRECISION object. By default, precision.obj.path = NULL indicates that the PRECISION object is already existed in the current global environment.

precision.obj.name

a string for the name of the PRECISION R object.

Value

a list of lists containing all the errors from the PRECISION object with the same names as the object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
## Load + extract errors from a PRECISION object
precision.error.df <- extract.precision.error(precision.obj.path =
  "mypath/precision.result.Rdata",
  precision.obj.name = "precision.result")
  
## Load + extract errors from a PRECISION FLEX object
precision.flex.error.df <- extract.precision.error(precision.obj.path =
  "mypath/precision.flex.result.Rdata",
  precision.obj.name = "precision.flex.result")

## Extract errors from a PRECISION FLEX object previously existed in global env
load("mypath/precision.a.Rdata") # load object named "precision.a" in global env
precision.flex.error.df <- extract.precision.error(precision.obj.name = "precision.flex.result")

## End(Not run)

LXQin/precision documentation built on May 11, 2019, 6:24 p.m.