R/plotting_helpers.R
extract_matrix_values.Rd
The output of compute_eigen_decomp
puts the eigenvalues into
a list structure, where each element is a vector that corresponds to the
eigenvalues for a given time point. This function does the work of
converting the values into a data.frame for more easy analysis.
extract_matrix_values(values_list, id_var = "censusdate")
values_list | a list of vectors for the eigenvalues: the number of elements in the list corresponds to the time points of the s-map model, and each element is a vector of the eigenvalues, computed from the matrix of the s-map coefficients at that time step |
---|---|
id_var | when constructing the long-format tibble, what should be the variable name containing the time index |
A data.frame with columns for the index variable, the eigenvalue, and the rank