powered by
empirical_dist
x
Method for obtaining the variance of empirical_dist object x.
# S3 method for empirical_dist vcov(object, ...)
The sample variance-covariance matrix.
The empirical distribution object.
Additional arguments to pass (not used).
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
Run the code above in your browser using DataLab