make_cov function

Make covariance matrix from standard deviations and correlations

Make covariance matrix from standard deviations and correlations

make_cov(sds, corr)

Arguments

  • sds: Vector of standard deviations
  • corr: Vector of correlations (must be of length m*(m-1)/2 if sds is of length m)

Returns

An m by m covariance matrix

Other functions in hmmTMB

Related functions from the same R package