Density, distribution function, quantile function and random generation for the 3-parameter log-logistic distribution with shape, scale, and threshold (or shift) parameters equal to shape, scale, and thres, respectively.
logical; if TRUE, probabilities p are given as log(p).
lower.tail
logical; if TRUE (default), probabilities are P[X <= x],otherwise, P[X > x].
Details
If Y is a random variable distributed according to a logistic distribution (with location and scale parameters), then X = exp(Y)+m has a 3-parameter
log-logistic distribution with shape and scale parameters corresponding to the scale and location parameteres of Y, respectively; and threshold parameter m.
Value
dllog3 gives the density, pllog3 gives the distribution function, qllog3 gives the quantile function, and rllog3 generates random deviates.
m <- 100
x <- rllog3(10,1,0,m)
dllog3(x,1,0,m)
dllog(x-m,1,0)
dlogis(log(x-m),0,1)/(x-m)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(FAdist)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/FAdist/LLOGIS3.Rd_%03d_medium.png", width=480, height=480)
> ### Name: LLOGIS3
> ### Title: Three-Parameter Log-Logistic Distribution
> ### Aliases: dllog3 pllog3 qllog3 rllog3
> ### Keywords: distribution
>
> ### ** Examples
>
> m <- 100
> x <- rllog3(10,1,0,m)
> dllog3(x,1,0,m)
[1] 0.99630782 0.32397564 0.09539435 0.29005448 0.32105450 0.36128426
[7] 0.93771552 0.12415003 0.26484731 0.15126098
> dllog(x-m,1,0)
[1] 0.99630782 0.32397564 0.09539435 0.29005448 0.32105450 0.36128426
[7] 0.93771552 0.12415003 0.26484731 0.15126098
> dlogis(log(x-m),0,1)/(x-m)
[1] 0.99630782 0.32397564 0.09539435 0.29005448 0.32105450 0.36128426
[7] 0.93771552 0.12415003 0.26484731 0.15126098
>
>
>
>
>
> dev.off()
null device
1
>