View source: R/get_what-methods.R
get_what.easy_tool | R Documentation |
easy_tool
Objectsget_what.easy_tool
extracts components from easy_tool
-class
objects.
## S3 method for class 'easy_tool' get_what( from = NULL, what = NULL, ..., bootreps = 4000, conf_level = 0.95, se_min = 0.8 )
from |
the |
what |
the (character) name of the component to extract. Valid values are
|
... |
optional arguments to |
bootreps |
the number of bootstrap replications for estimation of
confidence intervals for |
conf_level |
(optional) confidence level for |
se_min |
minimum value of sensitivity printed for
|
get_what
is provided to enable easy extraction of components that
are not provided by the plot
, predict
, print
or
summary
methods.
Valid values of what
are:
"Call"
returns the function call that created from
.
"QuestionWeights"
returns the screening question weights, which are the re-scaled logistic-regression coefficients.
ROCci
returns a data frame containing sensitivities, specificities and their confidence limits, and thresholds
"Scores"
returns the screening scores for each subject, which
are the sums of the products of the binary question responses and their
QuestionWeights
"ROC"
returns the receiver-operating characteristic for the
Scores
get_what.easy_tool
returns (invisibly) the object specified
by what
.
## Not run: attach(uniobj1) tool <- easy_tool(uniobj1, max = 3, crossval = TRUE) ## Get and print sensitivities and specificities at thresholds for the ## local maxima of the ROC curve ROCci <- get_what(from = tool, what = "ROCci") print(ROCci) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.