GOF_correlation_tests {HyMETT} | R Documentation |
Calculates Kendall's Tau, Spearman's Rho, Pearson Correlation
Description
Calculates Kendall's Tau, Spearman's Rho, Pearson Correlation, and p-values
as a wrapper to the stats::cor.test
function. Output is tidy-style data.frame.
Usage
GOF_correlation_tests(mod, obs, na.rm = TRUE, ...)
Arguments
mod |
'numeric' vector. Modeled or simulated values. Must be same length as |
obs |
'numeric' vector. Observed or comparison values. Must be same length as |
na.rm |
'boolean' |
... |
Further arguments to be passed to or from |
Details
See stats::cor.test
for more details and further arguments to be passed to or from methods.
Defaults are used.
Value
A tibble (tibble::tibble
) with test statistic values and p-values.
See Also
Examples
GOF_correlation_tests(mod = example_mod$streamflow_cfs, obs = example_obs$streamflow_cfs)