README.md

MCMCfreq

Overviwe

The MCMCfreq package provides Bayesian Gaussian Process regression with Stan for one dimentional data. Althoug this package was created to correctly estimate the age frequency spectrum of detrital zircon, it can be widely applied to various data instead of histogram.

Installation

In advance, you need a working environment of Stan.

install.packages("rstan")
install.packages("rstantools")
install.packages("devtools")
library(devtools)
install_github("Tan-Furukawa/MCMCfreq")

Examples

library(MCMCfreq)
d <- Osayama
e <- auto_cmpt_freq(d)
freq_graph(e, hist = T, ylab = "Frequency")

test

library(MCMCfreq)
d <- Osayama
e <- cmpt_freq(d, rho = 3, sigma = 2)
freq_graph(e, hist = T, ylab = "Frequency")
WAIC <- e$WAIC
print(WAIC)
>print(WAIC)
[1] 275.4525

Author

Tan Furukawa (古川旦)

e-mail: rpackagetan@gmail.com

Reference



Tan-Furukawa/MCMCfreq documentation built on Feb. 7, 2020, 10:25 a.m.