mcmap {mcmapper} | R Documentation |
Maps a pair of mean and c-statistic value to the parameters of a specified distribution for risk
mcmap(target, type = c("beta", "logitnorm", "probitnorm"))
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"). |
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.
mcmap(c(0.1, 0.75), "beta")