mcmap_generic {mcmapper}R Documentation

A generic mapper function

Description

Maps a pair of mean and c-statistic value to the parameters of an unspecified distribution that is indexed by two parameters

Usage

mcmap_generic(
  target,
  CDF,
  integrate_controls = list(),
  optim_controls = list()
)

Arguments

target

A vector of size 2. The first element is mean and the second element is c-statistic.

CDF

Cumulative distribution function of an unnspecified distribution. The CDF must be indexed by two parameters.

integrate_controls

(optional): parameters to be passed to integrate()

optim_controls

(optional): parameters to be passed to optim()

Value

A vector of size two that contains the distribution parameters

Examples

mcmap_generic(c(0.1, 0.75), pbeta)

[Package mcmapper version 0.0.11 Index]