priorOnK_spec {telescope} | R Documentation |
Specify prior on
.
Description
Obtain a function to evaluate the log prior
specified for .
Usage
priorOnK_spec(
P = c("fixedK", "Unif", "BNB_111", "BNB_121", "BNB_143", "BNB_443", "BNB_943",
"Pois_1", "Pois_4", "Pois_9", "Geom_05", "Geom_02", "Geom_01", "NB_11", "NB_41",
"NB_91"),
K
)
Arguments
P |
A character indicating which specification should be used. See Details for suitable values. |
K |
A numeric or integer scalar specifying the fixed (if |
Details
The following prior specifications are supported:
-
"fixedK"
: K has the fixed value K (second argument). -
"Unif"
:Unif
, where the upper limit is given by K (second argument).
-
"BNB_111"
:BNB(1,1,1), i.e.,
follows a beta-negative binomial distribution with parameters
.
-
"BNB_121"
:BNB(1,2,1), i.e.,
follows a beta-negative binomial distribution with parameters
.
-
"BNB_143"
:BNB(1,2,1), i.e.,
follows a beta-negative binomial distribution with parameters
.
-
"BNB_443"
:BNB(4,4,3), i.e.,
follows a beta-negative binomial distribution with parameters
.
-
"BNB_943"
:BNB(9,4,3), i.e.,
follows a beta-negative binomial distribution with parameters
.
-
"Pois_1"
:pois(1), i.e.,
follows a Poisson distribution with rate 1.
-
"Pois_4"
:pois(4), i.e.,
follows a Poisson distribution with rate 4.
-
"Pois_9"
:pois(9), i.e.,
follows a Poisson distribution with rate 9.
-
"Geom_05"
:geom(0.5), i.e.,
follows a geometric distribution with success probability
and density
.
-
"Geom_02"
:geom(0.2), i.e.,
follows a geometric distribution with success probability
and density
.
-
"Geom_01"
:geom(0.1), i.e.,
follows a geometric distribution with success probability
and density
.
-
"NB_11"
:nbinom(1,0.5), i.e.,
follows a negative-binomial distribution with
and
.
-
"NB_41"
:nbinom(4,0.5), i.e.,
follows a negative-binomial distribution with
and
.
-
"NB_91"
:nbinom(9,0.5), i.e.,
follows a negative-binomial distribution with
and
.
Value
A named list containing:
-
"log_pK"
: a function of the log prior of.
-
"param"
: a list with the parameters.