.get_values | R Documentation |
Determine final optimized values for the sensitivity and specificity of an experimental test kit (and probability of suspect given disease positive and given disease negative for a 3-state kit).
.get_values(
dat,
SnR.vec,
SpR.vec,
prev.vec,
N.vec,
nstates,
tolerance,
rep.iter,
iter.n,
parm = NULL
)
dat |
|
SnR.vec |
|
SpR.vec |
|
prev.vec |
|
N.vec |
|
nstates |
|
tolerance |
Setting a limit on the pgtol used in the optim function with the "L-BFGS-B" method. See also optim. |
rep.iter |
logical (TRUE/FALSE) Indicates if updates should be printed regarding the number of iterations completed. |
iter.n |
integer indicating the frequency of updates for the number of iterations completed. |
parm |
|
A list:
The following will be returned for both 2 and 3-state experimental tests –
sens.final
: vector
The optimized values for the sensitivity of the
experimental test kit.
spec.final
: vector
The optimized values for the specificity of the
experimental test kit.
converge
: vector
Each entry is an integer code detailing the
convergence of the optimization for each iteration. 0 indicates successful
completion. See also optim.
message
: vector
Each entry includes a character string giving any
additional information returned by the optimizer or NULL. See also optim.
If three states –
\delta
: vector
The optimized values for the probability
of a suspect result as a fraction of the non-correct test result for
diseased samples.
\gamma
: vector
The optimized value for the probability
of a suspect result as a fraction of the non-correct test result for
non-diseased samples.
DiagTestKit-package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.