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

extract.precision.errorR Documentation

Extracting errors from PRECISION (both non-FLEX and FLEX) output

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

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

## 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)


yilinwu123/precision1 documentation built on June 28, 2022, 2:53 a.m.