Description Usage Arguments Value Note Author(s) References See Also Examples
Computes a multivariate normal moment by Monte Carlo integration
1 2 |
object |
object of class 'moment' representing E[X1**k1,...,Xn**kn] |
nsim |
the number of samples to generate in computing the integral |
seed |
integer for random number generator (set.seed) |
Mean |
the mean of (X1,...,Xn) |
Sigma |
covariance of (X1**k1,...,Xn**kn), dimension nXn, expressed as a vector by row |
... |
Included only for consistency with generic function |
Approximate value of the moment
Non-central moments can be approximated by specifying Mean. For central moments, set Mean to a vector of 0s.
The mvtnorm package must be loaded for the function rmvnorm.
Kem Phillips <kemphillips@comcast.net>
Rizzo ML (2008). Statistical Computing with R. Chapman & Hall/CRC
callmultmoments and the methods toLatex and evaluate from symmoments
1 2 3 4 5 6 7 |
Loading required package: mvtnorm
Loading required package: cubature
Loading required package: combinat
Attaching package: ‘combinat’
The following object is masked from ‘package:utils’:
combn
Loading required package: multipol
Loading required package: abind
Attaching package: ‘multipol’
The following object is masked from ‘package:stats’:
deriv
The following object is masked from ‘package:base’:
single
[1] 156.8237
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.