invglogit: Inverse Generalized Logit Function.

Description Usage Arguments Details Value See Also Examples

View source: R/stanglogitMer-functions.R

Description

invglogit returns the value from the inverse generalized logit function, along the continuous y, coming from a Generalized Logit Function, between the a and k parameters, with growth g and shift s.

Usage

1
invglogit(y, a, k, g, s)

Arguments

y

the dependent variable / a variable coming from a Generalized Logit Function.

a

the minimum value.

k

the maximum value.

g

the growth parameter.

s

the shift (intercept) parameter.

Details

a + \frac{k-a}{1+e^{-g \times (x-s)}}

Value

The value from the inverse generalized logit function.

See Also

glogit

Examples

1
2
3
y = glogit(-100:100,-70,100,0.5,10)
x = invglogit(y,-70,100,0.5,10)
plot(x=x,y=y,type="l")

michelescandola/stanglogitMer documentation built on Nov. 4, 2019, 6:52 p.m.