postPredCor: Calculates correlation between observed and posterior...

View source: R/postPredCor.R

postPredCorR Documentation

Calculates correlation between observed and posterior generated SPD.

Description

Computes the correlation between observed SPDs and posterior generated SPD from the output of postPredSPD() function as an heuristic of the goodness-of-fit of the model.

Usage

postPredCor(x, method = "pearson")

Arguments

x

An object of class spdppc.

method

a character string indicating which correlation coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated.

Value

A vector of correlation values.


nimbleCarbon documentation built on Aug. 14, 2023, 5:08 p.m.