cdfLogisticInv

Purpose

Computes the logistic inverse cumulative distribution function.

Format

x = cdfLogisticInv(p, loc, scale)
Parameters:
  • p (NxK matrix, Nx1 vector or scalar) – Probabilities at which to compute the logistic inverse cumulative distribution function. \(0 < p < 1\).

  • loc (NxK matrix, Nx1 vector or scalar) – Location parameter, ExE conformable with x.

  • scale (NxK matrix, Nx1 vector or scalar) – Scale parameter; ExE conformable with x. \(0 < scale\).

Returns:

x (NxK matrix, Nx1 vector or scalar) – each value of x is the value such that the logistic cumulative distribution function with loc and scale evaluated at x is equal to the corresponding value of p.

Examples

// Probabilities
p = {0.1, 0.25, 0.5, 0.75, 0.95};

// Location parameter
loc = 0;

// Scale parameter
s = 2;

x = cdfLogisticInv(p, loc, s);

After the above code, X will equal:

-4.3944
-2.1972
 0.0000
 2.1972
 5.8889