This implementation of network predictability proceeds in several steps
with important assumptions:
1. Network was estimated using (partial) correlations (not regression like the
mgm package!)
2. Original data that was used to estimate the network in 1. is necessary to
apply the original scaling to the new data
3. (Linear) regression-like coefficients are obtained by reserve engineering the
inverse covariance matrix using the network's partial correlations (i.e.,
by setting the diagonal of the network to -1 and computing the inverse
of the opposite signed partial correlation matrix; see EGAnet:::pcor2inv)
4. Predicted values are obtained by matrix multiplying the new data with these
coefficients
5. Dichotomous and polytomous data are given categorical values based
on the original data's thresholds and these thresholds are used to
convert the continuous predicted values into their corresponding categorical values
6. Evaluation metrics:
dichotomous --- "Accuracy" or the percent correctly predicted for the 0s and 1s
and "Kappa" or Cohen's Kappa (see cite)
polytomous --- "Linear Kappa" or linearly weighted Kappa and
"Krippendorff's alpha" (see cite)
continuous --- R-squared ("R2") and root mean square error ("RMSE")