expit: Function to do expit (exp(x)/(1+exp(x))) transformation In OOmisc: Ozgur-Ozlem Miscellaneous

Description

Calculates the expit transformation of a given set of values

Usage

 `1` ```expit(x) ```

Arguments

 `x` a vector or matrix which contains the values to be transformed

Details

expit is inverse of logit (log(x/(1-x)))

Value

Returns the transformed sample

Ozgur Asar

Examples

 ```1 2``` ```x<-rnorm(100) expit(x) ```

Example output

```  [1] 0.48090602 0.70112202 0.45341305 0.38465069 0.69912649 0.49888025
[7] 0.41796975 0.55383074 0.37877335 0.64977801 0.48539758 0.52680588
[13] 0.61977384 0.40201622 0.71472443 0.61175585 0.30103129 0.61570448
[19] 0.48615218 0.46826283 0.79012376 0.29594768 0.59938518 0.50293158
[25] 0.23184247 0.50149585 0.80523014 0.24832322 0.49224388 0.56417993
[31] 0.37606225 0.70942043 0.65520205 0.36230207 0.56255277 0.80616715
[37] 0.46574751 0.54707081 0.41406678 0.42928612 0.14496982 0.43041116
[43] 0.64420036 0.56215094 0.13730203 0.83323898 0.79699635 0.56014752
[49] 0.44071673 0.45517346 0.42107026 0.38227403 0.20840291 0.62211333
[55] 0.88928142 0.20768707 0.43481227 0.48982982 0.85348266 0.40606618
[61] 0.72645275 0.56985428 0.19239662 0.58775058 0.22766167 0.80705198
[67] 0.83944222 0.05329071 0.44962964 0.67007359 0.52406397 0.76084592
[73] 0.49138065 0.31206031 0.28046284 0.51774716 0.61618652 0.27046659
[79] 0.82084750 0.32876046 0.58276020 0.76298644 0.46938050 0.51656267
[85] 0.23875052 0.45261591 0.58025899 0.74999568 0.41030241 0.63977465
[91] 0.24249806 0.55014247 0.33076597 0.80682623 0.77387071 0.79111427
[97] 0.71770516 0.67725033 0.48176749 0.23431426
```

OOmisc documentation built on May 1, 2019, 10:17 p.m.