View source: R/goodness_of_fit.R
GOF_correlation_tests | R Documentation |
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.
GOF_correlation_tests(mod, obs, na.rm = TRUE, ...)
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 |
See stats::cor.test
for more details and further arguments to be passed to or from methods.
Defaults are used.
A tibble (tibble::tibble
) with test statistic values and p-values.
cor.test
GOF_correlation_tests(mod = example_mod$streamflow_cfs, obs = example_obs$streamflow_cfs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.