rsp {dsfa} R Documentation

## rsp function

### Description

Response function and inverse response function (link function).

### Usage

rsp(x, link = "identity", a = 0, b = 1, inv = FALSE, deriv = 0)


### Arguments

 x vector of quantiles. link specifying the type of link function. identitity = Identity link function log = Log link function glogit = Generalized logit link function with parameters a and b a numeric min value for glogit link function. b numeric max value for glogit link function. inv logical; if TRUE, evaluate link function and its derivatives. deriv derivative of order deriv. Available are 0, 2 and 4.

### Details

The link functions are defined as follows:
identitity: g(x)=x and thus the response function is g^{-1}(x)=x.
log: g(x)=log(x) and thus the response function is g^{-1}(x)=exp(x).
glogit: g(x)=log(\frac{x-a}{b-a}/(1-\frac{x-a}{b-a})) and thus the response function is g^{-1}(x)=\frac{exp(x)}{1+exp(x)} \cdot (b-a)+a.

### Value

Mostly internal function. Returns a vector of the corresponding function evaluated at x with its derivatives.

### Examples

rsp(x=5, link="glogit", a=0, b=1, inv=FALSE, deriv=4)
rsp(x=0.5, link="glogit", a=0, b=1, inv=TRUE, deriv=4)



[Package dsfa version 1.0.1 Index]