Description Usage Arguments Details
Functions defining the univariate Poisson distribution.
1 2 3 4 5 6 7 | devPsn(x, params)
gradDevPsn(x, params)
paramVec2ListPsn(paramVec)
paramList2VecPsn(paramList)
|
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). |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.