test_model: Test a newly entered model

Description Usage Arguments Value

View source: R/test_pdb.R

Description

This function is still under development and may well be buggy. Please file Issues in the GitHub repository describing the problems you encounter so I can work on those: https://github.com/levisc8/pdbDigitUtils/issues.

Usage

1
2
3
4
test_model(pdb, id, iterations = 100, tolerance = 2)

## S3 method for class 'pdb_missing_target'
print(x, ...)

Arguments

pdb

The padrino database object

id

The ipm_id you wish to test

iterations

The number of iterations to run the model for.

tolerance

The tolerance for differences between computed and stored target to be considered the same. This is calculated as tolerance * 10^(-target_prec), where target_prec is usually 2, but comes from Padrino itself. For example, tolerance = 3 usually allows for computed lambda to be considered the same if it is within +/- 0.03 of the target lambda value.

x

Output from test_model

...

Ignored

Value

Either a data frame of errors and warnings, a set of lambdas to inspect by hand (if there is not testTarget), or a message indicating the result of comparison with the TestTarget.


levisc8/pdbDigitUtils documentation built on Dec. 21, 2021, 10:43 a.m.