Learn R Programming

mev (version 1.17)

.gev.postpred: Posterior predictive distribution and density for the GEV distribution

Description

This function calculates the posterior predictive density at points x based on a matrix of posterior density parameters

Usage

.gev.postpred(x, posterior, Nyr = 100, type = c("density", "quantile"))

Value

a vector of values for the posterior predictive density or quantile at x, depending on the value of type

Arguments

x

n vector of points

posterior

n by 3 matrix of posterior samples

Nyr

number of years to extrapolate

type

string indicating whether to return the posterior density or the quantile.