Last data update: 2014.03.03

R: Log-Logistic Distribution
LLOGISR Documentation

Log-Logistic Distribution

Description

Density, distribution function, quantile function and random generation for the log-logistic distribution with shape and scale parameters equal to shape and scale, respectively.

Usage

dllog(x,shape=1,scale=1,log=FALSE)
pllog(q,shape=1,scale=1,lower.tail=TRUE,log.p=FALSE)
qllog(p,shape=1,scale=1,lower.tail=TRUE,log.p=FALSE)
rllog(n,shape=1,scale=1)

Arguments

x,q

vector of quantiles.

p

vector of probabilities.

n

number of observations.

shape

shape parameter.

scale

scale parameter.

log,log.p

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) has a log-logistic distribution with shape and scale parameters corresponding to the scale and location parameteres of Y, respectively.

Value

dllog gives the density, pllog gives the distribution function, qllog gives the quantile function, and rllog generates random deviates.

See Also

dlogis, plogis, qlogis, rlogis

Examples

x <- rllog(10,1,0)
dllog(x,1,0)
dlogis(log(x),0,1)/x

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/LLOGIS.Rd_%03d_medium.png", width=480, height=480)
> ### Name: LLOGIS
> ### Title: Log-Logistic Distribution
> ### Aliases: dllog pllog qllog rllog
> ### Keywords: distribution
> 
> ### ** Examples
> 
> x <- rllog(10,1,0)
> dllog(x,1,0)
 [1] 0.54185972 0.03771367 0.63197076 0.14467004 0.44724457 0.59525127
 [7] 0.55594398 0.64858382 0.06731789 0.66938741
> dlogis(log(x),0,1)/x
 [1] 0.54185972 0.03771367 0.63197076 0.14467004 0.44724457 0.59525127
 [7] 0.55594398 0.64858382 0.06731789 0.66938741
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>