univariatePoisson: Univariate Poisson

Description Usage Arguments Details

Description

Functions defining the univariate Poisson distribution.

Usage

1
2
3
4
5
6
7
devPsn(x, params)

gradDevPsn(x, params)

paramVec2ListPsn(paramVec)

paramList2VecPsn(paramList)

Arguments

x

A numeric vector of observations. As the Poisson distribution is discrete, the x values should all be integers.

params

A numeric value, providing the value of lambda.

paramVec

A numeric vector (of length one) containing the value of lambda.

paramList

A list with one element: lambda (a numeric value providing the mean).

Details

The deviance function returns the deviance of all the observations with the given parameters. The gradDev function computes the gradient of this deviance. The other two functions are useful for converting parameter vectors to lists and vice versa, and thus they return the list or vector.


rockclimber112358/MCLE documentation built on May 27, 2019, 12:15 p.m.