Skip to content

Commit

Permalink
Fix docs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikldk committed Aug 2, 2023
1 parent 36f55bb commit 27b8803
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: disclap
Type: Package
Title: Discrete Laplace Exponential Family
Version: 1.5.1
Version: 1.5.2
Author: Mikkel Meyer Andersen and Poul Svante Eriksen
Maintainer: Mikkel Meyer Andersen <mikl@math.aau.dk>
Description: The discrete Laplace exponential family for use in fitting generalized linear models.
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Changes in version 1.5.2
* Fix in docs

Changes in version 1.5.1
* Fix bugs: validmu function (ensure it returns TRUE or FALSE), imports

Expand Down
2 changes: 1 addition & 1 deletion man/ddisclap.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rdisclap(n, p)
\item{n}{number of observations to generate}
}
\details{
The probability mass function for the discrete Laplace distribution with parameter \eqn{0 < p < 1} is given by \eqn{P(X = x) = \frac{1-p}{1+p} p^x}{P(X = x) = ((1-p)/(1+p))*p^x} for \eqn{x \in \mathbf{Z}}{x = ..., -1, 0, 1, ...}.
The probability mass function for the discrete Laplace distribution with parameter \eqn{0 < p < 1} is given by \eqn{P(X = x) = \frac{1-p}{1+p} p^{|x|}}{P(X = x) = ((1-p)/(1+p))*p^x} for \eqn{x \in \mathbf{Z}}{x = ..., -1, 0, 1, ...}.

If \code{x} is a vector, then \code{p} must have either length 1 or the same length as \code{x}. If \code{p} has length 1, then the value will be reused for all values in \code{x}.
}
Expand Down

0 comments on commit 27b8803

Please sign in to comment.