gridSkyline: Interpolates skyline on a time grid (returns a matrix)

Description Usage Arguments

Description

Assumes that generations are rows and skyline variables are columns (in order) Every generation has the skyline from times[1] to origin[i] (or origin[i] to times[1] if reverse=TRUE) Assumes that intervals in the skyline are equidistant

Usage

1
gridSkyline(skyline, origin, times, reverse = FALSE)

Arguments

skyline

The skyline matrix (rows = mcmc generations, columns = skyline variables)

origin

The origin of the skyline, for each row in the skyline

times

The regular timegrid to return the marginal posterior on

reverse

If FALSE assumes that skyline[,1] is the oldest interval (skyline is forward in time - oldest to newest), else if TRUE assume skyline[,1] is the most recent interval (skyline is backward in time - newest to oldest). Setting reverse == TRUE is equivalent to reversing the skyline and then running the function with reverse == FALSE


laduplessis/bdskytools documentation built on May 20, 2019, 7:33 p.m.