getGPData: Get Gaussian Process covariance data to run JAGS country...

Description Usage Arguments Value

View source: R/getgpdata.R

Description

Function to get Gaussian Process variance-covariance data to run JAGS country model

Usage

1
2
getGPData(nyears.c, niso, cov.method = "matern", range = 10,
  smoothness = 2)

Arguments

nyears.c

vector with number of years of observations for each country

niso

number of countries

cov.method

either sqexp (squared exponential) or matern

range

parameter for Matern function. Default is 10.

smoothness

parameter for Matern function. Default is 2.

Value

An array which contains either the distance matrix for each country (squared exponential) or the covariance matrix for each country (matern).


MJAlexander/distortr documentation built on July 17, 2020, 4:06 p.m.