diff.optcheck: Elementwise difference between potential and optimal...

View source: R/diff.optcheck.R

diff.optcheckR Documentation

Elementwise difference between potential and optimal solutions.

Description

Elementwise difference between potential and optimal solutions.

Usage

## S3 method for class 'optcheck'
diff(x, ...)

## S3 method for class 'summary.optcheck'
diff(x, ...)

Arguments

x

Object of class optcheck or summary.optcheck, currently returned by optim_proj(), optim_refit(), or a summary of either of those calls.

...

Further arguments to be passed to or from other methods.

Details

This function is simply a wrapper to summary(x)$xdiff and x$xdiff, for optcheck and summary.optcheck objects respectively.

Value

A two-column matrix consisting of the absolute and relative differences between the potential and optimal solutions (xsol and xopt).


optimCheck documentation built on Sept. 11, 2024, 6:31 p.m.