expValDb {dbd} | R Documentation |
Expected value of a db distribution.
Description
Calculate the expected value (theoretical mean) of a random variable having a db distribution.
Usage
expValDb(ao,...)
## S3 method for class 'mleDb'
expValDb(ao,...)
## Default S3 method:
expValDb(ao, beta, ntop, zeta=FALSE,...)
Arguments
ao |
For the |
beta |
See |
ntop |
See |
zeta |
See |
... |
Not used. |
Details
For the "mleDb"
method, the single argument should really
be called (something like) “object
” and for the
default method the first argument should be called alpha
.
However the argument lists must satisfy the restrictions that
“A method must have all the arguments of the generic,
including ... if the generic does.” and “A method
must have arguments in exactly the same order as the generic.”
For the "mleDb"
method, the values of alpha
,
beta
, ntop
and zeta
(passed to ddb()
)
are extracted from the attributes of ao
.
The expected value of a db distribution is theoretically intractable but is readily calculable numerically as
\sum x \times \Pr(X=x)
.
Value
Numeric scalar equal to the expected value of a db distributed random variable with the given parameters.
Author(s)
Rolf Turner r.turner@auckland.ac.nz
See Also
Examples
expValDb(3,4,15)
X <- hmm.discnp::Downloads
fit <- mleDb(X,ntop=15,zeta=TRUE)
expValDb(fit)