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.
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")
auto_cmpt_freq()
is effective for detrital zircon data.library(MCMCfreq)
d <- Osayama
e <- auto_cmpt_freq(d)
freq_graph(e, hist = T, ylab = "Frequency")
cmpt_freq()
is effective for all one dimentional data.
If WAIC from one pair of rho and sigma is smaller than another pair, it means that is better model;
therefore, we have to serch better rho and sigma to make WAIC smaller.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
Tan Furukawa (古川旦)
e-mail: rpackagetan@gmail.com
Furukawa, T. (2019). Bayesian statistical evaluation method for detrital zircon geochronology. In Abstract of annual meeting of JpGU, Chiba, Japan, 2019.
Riihimäki, J., and Vehtari, A. (2014). Laplace approximation for logistic Gaussian process density estimation and regression. Bayesian analysis, 9(2), 425-448.
Tsujimori, T. (1998). Geology of the Osayama serpentinite melange in the central Chugoku Mountains, southwestern Japan: 320 Ma blueschist-bearing serpentinite melange beneath the Oyama ophiolite. Jour. Geol. Soc. Japan, 104, 213-231.
Stan Development Team (2018). RStan: the R interface to Stan. R package version 2.18.2. http://mc-stan.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.