View source: R/define_transform.R
define_transform | R Documentation |
Define a transform which shall be used for a statistical test, see infer
.
define_transform(transform, link, inv, se.t)
transform |
character, name of the transform. |
link |
function, which maps the raw estimate to the transformed estimate. |
inv |
function, inverse of link: |
se.t |
function, standard error of the transformed quantitiy (delta method). se.t needs
to have formal input arguments |
If transform corresponds to a known SEPM.transform object, this will object be returned
and all other input arguments are ignored. define_transform()
will print a list of known
transforms.
The use of a transform (other than "none") may help with making the test statistic(s) more "gaussian". In addition, it can prevent confidence bounds outside the parameter space. This a realistic issue in binomial models, e.g. when working with proportions like accuracy or classification error (ce). In this case the implemented transforms "logit" and "asin.sqrt" enforce confidence intervals in [0,1].
The output of the function se.t can be computed analytically with help of the Delta method, see Delta Method (Wikipedia).
A SEPM.transform which may be passed to infer
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.