glogit: Generalized Logit Function.

Description Usage Arguments Details Value See Also Examples

View source: R/stanglogitMer-functions.R

Description

glogit returns the value on the generalized logit curve, along the covariate x, between the a and k parameters, with growth g and shift s.

Usage

1
glogit(x, a, k, g, s)

Arguments

x

the independent continuous variable.

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 generalized logit function.

See Also

invglogit

Examples

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

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