Latent Recovery Correlation for RedoxRRI
Source:R/rri_latent_correlation.R
rri_latent_correlation.RdComputes the Pearson correlation between the per-sample Redox Resilience Index (RRI) and a known latent truth vector. This function is intended for simulation-based validation only and should not be interpreted as predictive accuracy.
Usage
rri_latent_correlation(
res,
latent_truth,
method = c("pearson", "spearman", "kendall")
)Arguments
- res
An object returned by
rri_pipeline_st().- latent_truth
Numeric vector of true latent values.
- method
Correlation method. One of
"pearson","spearman", or"kendall".