View source: R/covariance_plot.R
h_vectorization | R Documentation |
This function vectorizes the upper-diagonal elements of a symmetric matrix (e.g. the covariance matrix) and obtains the lag and time distance between pairs of observations if the time values are part of the names or are part of the matrix column and row names.
h_vectorization(vcov_matrix, time_prefix = NULL)
vcov_matrix |
( |
time_prefix |
( |
A data.frame
with the upper-diagonal elements of vcov_matrix
.
In the context of repeated measures, this matrix contains the association between pairs
of measurements taken at different time points. It contains the following columns:
Vect
: the upper-diagonal elements of vcov_matrix
.
time_diff
: the difference between column and row times.
lag
: the lag, defined as the difference between column and row ranks.
rank_row
: the row rank.
rank_col
: the column rank.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.