View source: R/empirical_dist.R
| vcov.empirical_dist | R Documentation |
empirical_dist object x.Method for obtaining the variance of empirical_dist object x.
## S3 method for class 'empirical_dist'
vcov(object, ...)
object |
The empirical distribution object. |
... |
Additional arguments to pass (not used). |
The sample variance-covariance matrix.
ed <- empirical_dist(c(1, 2, 3, 4, 5))
vcov(ed) # sample variance
ed_mv <- empirical_dist(matrix(rnorm(20), ncol = 2))
vcov(ed_mv) # 2x2 covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.