compare_fitted {bayesnec}R Documentation

compare_fitted

Description

Extracts posterior predicted values from a list of class bayesnecfit or bayesmanecfit model fits and compares these across a vector of fitted values.

Usage

compare_fitted(x, precision = 50, x_range = NA)

Arguments

x

A named list of objects of class bayesnecfit or bayesmanecfit returned by bnec.

precision

The number of unique x values over which to find ECx - large values will make the ECx estimate more precise.

x_range

A range of x values over which to consider extracting ECx.

Value

A named list containing bootstrapped differences in posterior predictions of the bayesnecfit or bayesmanecfit model fits contained in x. See Details.

See Also

bnec

Examples

## Not run: 
library(bayesnec)
data(manec_example)
nec4param <- pull_out(manec_example, model = "nec4param")
ecx4param <- pull_out(manec_example, model = "ecx4param")
compare_fitted(list("nec" = ecx4param, "ecx" = nec4param))

## End(Not run)


[Package bayesnec version 2.0.2 Index]