| pdfOQ | R Documentation |
Generate a self-contained PDF report that documents whether the NonCompart noncompartmental analysis engine (as used through ncar) reproduces pre-specified reference results on the user's own machine, within a pre-specified relative tolerance. It is intended as Operational Qualification (OQ) evidence, in the spirit of the WinNonlin computational-engine verification. The report uses only base R, NonCompart, and the package's own pdf helpers, so it requires no LaTeX, pandoc, or other external tools.
pdfOQ(fileName = "ncar-OQ-Report.pdf", cases = NULL, tol = 0.001,
refDir = system.file("OQ", package = "ncar"), performedBy = "",
paper = "auto", sigField = FALSE)
fileName |
file name to save the PDF report |
cases |
a list of OQ case definitions. If |
tol |
acceptance tolerance: a parameter passes when the symmetric relative
difference |
refDir |
directory holding the reference csv files. Defaults to the
|
performedBy |
name of the person performing the qualification, printed in the report header. Defaults to the login name. |
paper |
paper size: |
sigField |
if |
For each case the function runs tblNCA on the (frozen) input data,
maps the CDISC PPTESTCD result columns to WinNonlin parameter names using the
internal RptCfg table, matches comparable parameters to the reference table
(robust to % vs . naming), and compares every parameter for every
subject. A case passes only when all of its comparisons pass.
The bundled reference values are WinNonlin 6.4 NCA outputs. These establish concordance with the de-facto reference implementation (Tier B); they are not, by themselves, an independent verification. Independent (Tier A) anchors (hand-calculated edge cases, published textbook values) are a planned addition.
Invisibly returns a list with elements fileName, qualified
(logical), tol, nCases, nFailCases, and results
(a per-case list with status, comparison counts, maximum relative difference,
and any failed comparisons). A PDF file is written to fileName.
Kyun-Seop Bae <k@acr.kr>
pdfIQ, pdfNCA, tblNCA
#pdfOQ()
#res <- pdfOQ(fileName = "MyEngine-OQ.pdf", performedBy = "Jane Doe")
#res$qualified
#res$results[[1]]$maxRD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.