powered by
Utility function for constructing covariance matrices based on a simple triplet format (simple_triplet_matrix).
simple_triplet_matrix
cov_matrix(k, i, j, v)
A dense matrix of covariances.
matrix
an integer giving the number of rows and columns of the constructed covariance matrix.
an integer vector giving the row indices.
a numeric vector giving the corresponding values.
Other simulation: rhglm()
rhglm()
cov_matrix(5, c(1, 2), c(2, 3), c(0.8, 0.9))
Run the code above in your browser using DataLab