Learn R Programming

marp (version 0.1.0)

pllog: Probability function of Log-Logistics model

Description

Probability function of Log-Logistics model

Usage

pllog(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)

Value

returns the probability of the Log-Logistics model

Arguments

q

input quantile for Log-Logistics model

shape

shape parameter of Log-Logistics model

scale

scale parameter of Log-Logistics model

lower.tail

logic function to determine whether lower tail probability to be returned

log.p

logic function to determine whether log of logistics to be returned

Examples

Run this code
q <- c(1, 2, 3, 4)
# set paramters
shape <- 5
scale <- 3
log <- FALSE
result_1 <- marp::pllog(q, shape, scale, log)

# alternatively, set log == TRUE
log <- TRUE
result_2 <-  marp::pllog(q, shape, scale, log)

Run the code above in your browser using DataLab