mcmap {mcmapper} | R Documentation |
The main mapper function
Description
Maps a pair of mean and c-statistic value to the parameters of a specified distribution for risk
Usage
mcmap(target, type = c("beta", "logitnorm", "probitnorm"))
Arguments
target |
A vector of size 2. The first element is mean and the second element is c-statistic. |
type |
One of "beta", "logitnorm", "probitnorm". Loosy matching is enabled (so "b" will be mapped to "beta"). |
Value
An object of class mcmapper. The "value" component returns the parameter. Any warning or error from the integration or gradient ascent will also be returned in the "info" component.
Examples
mcmap(c(0.1, 0.75), "beta")
[Package mcmapper version 0.0.11 Index]