Nothing
#' @rdname nncConversion
#' @export
convert.d.to.eer <- function(d, cer, eventDesirable=TRUE, eventIfHigher=TRUE,
dist = "norm", distArgs=list(), distNS="stats") {
pdistFuncName <- paste0("p", dist);
qdistFuncName <- paste0("q", dist);
pdist <-
function(q) {
return(
do.call(
utils::getFromNamespace(pdistFuncName, ns = distNS),
c(list(q = q), distArgs)
)
);
}
qdist <-
function(p) {
return(
do.call(
utils::getFromNamespace(qdistFuncName, ns = distNS),
c(list(p = p), distArgs)
)
);
}
if (eventIfHigher) {
return(pdist(qdist(cer) + d));
} else {
return(1 - pdist(qdist(1-cer) + d));
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.