getSplinesData: Get Basis splines data to run JAGS country model

Description Usage Arguments Value

View source: R/getsplinesdata.R

Description

Function to get basis splines data to run country model in JAGS.

Usage

1
getSplinesData(nyears.c, niso, order, I = 2.5)

Arguments

nyears.c

vector with number of years of observations for each country

niso

number of countries

order

order of splines penalization; must be 1 or 2.

I

interval length between two knots during observation period. Default is 2.5 years.

Value

A list of data for input to JAGS, which includes matrix of basis splines for each country.


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