expit: inverse-logit transformation

Description Usage Arguments Value Examples

View source: R/expit.R

Description

computes exp(x)/(1+exp(x))

Usage

1
expit(x)

Arguments

x

a real number

Value

returns a number between 0 and 1 – the inverse-logit transform of x.

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    exp(x)/(1 + exp(x))
  }

jaroyle/SCRbayes documentation built on May 18, 2019, 4:48 p.m.