cdf_fun {Surrogate}R Documentation

Function factory for distribution functions

Description

Function factory for distribution functions

Usage

cdf_fun(para, family)

Arguments

para

Parameter vector.

family

Distributional family, one of the following:

  • "normal": normal distribution where para[1] is the mean and para[2] is the standard deviation.

  • "logistic": logistic distribution as parameterized in stats::plogis() where para[1] and para[2] correspond to location and scale, respectively.

  • "t": t distribution as parameterized in stats::pt() where para[1] and para[2] correspond to ncp and df, respectively.

Value

A distribution function that has a single argument. This is the vector of values in which the distribution function is evaluated.


[Package Surrogate version 3.2.5 Index]