log_weibull: PDF and CDF of the Weibull distribution

View source: R/RcppExports.R

log_weibullR Documentation

PDF and CDF of the Weibull distribution

Description

Computes the log pdf and cdf of the weibull distribution.

Usage

log_weibull(y, a1, a2, c_under)

Arguments

y

observed data

a1

shape parameter

a2

rate parameter

c_under

A small positive value corresponding to the underflow threshold, e.g. c_under = 1e-9.

Value

A list containing the following entries

log_f

natural logarithm of the pdf, evaluated at each datapoint.

log_F

natural logarithm of the CDF, evaluated at each datapoint.

Author(s)

Panagiotis Papastamoulis

Examples

log_weibull(y = 1:10, a1 = 1, a2 = 1, c_under = 1e-9)


bayesCureRateModel documentation built on Oct. 4, 2024, 1:07 a.m.