powered by
Creates an n × n covariance matrix with entries \(\rho^{|i - j|}\).
generate_sig(n, rho)
An n × n positive definite covariance matrix.
Dimension of the covariance matrix.
Correlation decay parameter.
S <- generate_sig(5, 0.5)
Run the code above in your browser using DataLab