dsbgamma {sbd}R Documentation

Size biased gamma probability density

Description

Calculates size biased gamma probability density - the underlying gamma probability density when the likelihood of recording an observation is proportional to its value.

Usage

dsbgamma(x, lmean, lrate, log = FALSE, xlog = FALSE)

Arguments

x

A vector of positive numbers.

lmean

The mean of the distribution on the log scale.

lrate

The log rate parameter of the underlying gamma distribution.

log

A logical indicating whether to return log densities.

xlog

A logical indicating whether to return densities for log transformed data.

Value

A vector of probability densities.

Examples

  data(BCI_speed_data)
  agoutiData <- subset(BCI_speed_data, species=="agouti")
  dsbgamma(agoutiData$speed, 0, 0.1)

[Package sbd version 0.1.0 Index]