| m2df | R Documentation |
Generic function for the computation of clipped second moments.
The moments are clipped at upper.
m2df(object, upper, ...)
## S4 method for signature 'AbscontDistribution'
m2df(object, upper,
lowerTruncQuantile = getdistrExOption("m2dfLowerTruncQuantile"),
rel.tol = getdistrExOption("m2dfRelativeTolerance"), ...)
object |
object of class |
upper |
clipping bound |
rel.tol |
relative tolerance for |
lowerTruncQuantile |
lower quantile for quantile based integration range. |
... |
additional arguments to |
The precision of the computations can be controlled via
certain global options; cf. distrExOptions.
The second moment of object clipped at upper is computed.
uses call E(object, upp=upper, fun = function, ...).
clipped second moment
for absolutely continuous univariate distributions which is
computed using integrate.
clipped second moment
for discrete univariate distributions which is computed
using support and sum.
clipped second moment
for affine linear distributions which is computed on basis of
slot X0.
clipped second moment
for Binomial distributions which is computed using pbinom.
clipped second moment
for Poisson distributions which is computed using ppois.
clipped second moment
for normal distributions which is computed using dnorm and pnorm.
clipped second moment
for exponential distributions which is computed using pexp.
clipped second moment
for \chi^2 distributions which is computed using pchisq.
Matthias Kohl Matthias.Kohl@stamats.de
m2df-methods, E-methods
# standard normal distribution
N1 <- Norm()
m2df(N1, 0)
# Poisson distribution
P1 <- Pois(lambda=2)
m2df(P1, 3)
m2df(P1, 3, fun = function(x)sin(x))
# absolutely continuous distribution
D1 <- Norm() + Exp() # convolution
m2df(D1, 2)
m2df(D1, Inf)
E(D1, function(x){x^2})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.