auto_cmpt_freq: Bayesian Gaussian Process regression with Stan: automatically...

Description Usage Arguments Value Examples

View source: R/auto_cmpt_freq.R

Description

WAIC is determined by rho, sigma, data and M. So, we can explicitly show WAIC = WAIC(rho,sigam,data,M). If M and data is fixed, WAIC is the function only having rho and sigma as variables. The algorithm for finding the minimum value of WAIC is as follows. for(rho in 1:rho_max); if(WAIC(rho+1,ex_sigma) is larger than WAIC(rho,ex_sigma)); then return cmpt_freq(data,rho,ex_sigma) The details are ######

Usage

1
2
3
4
5
auto_cmpt_freq(data, M = as.integer(50), delta = 1/25, max_rho = 10,
  ex_sigma = 3, stan_seed = as.integer(1234),
  stan_chains = as.integer(3), stan_warmup = as.integer(300),
  stan_thin = as.integer(1), stan_iter = as.integer(1300),
  stan_max_treedepth = as.integer(10))

Arguments

data

a vector of one dimentional data.

M

integer; degree of discretization computation. x axis of frequency plot is divided into M grids. Defaults to M = 50, and larger M give accurate frequency plot, but the computation takes much time.

delta

numeric beetween 0 and 1 (defaults to 1/25); the size of no-data area in frequency plot. In order to stabilize computation, both ends of the graph have no data points. The size is expressed by delta times size of plot area in the x-axis direction.

max_rho

numeric > 1; See Description

ex_sigma

expected value of sigma > 0; See Description

stan_seed

see ?stan in library(rstan)

stan_chains

see ?stan in library(rstan)

stan_warmup

see ?stan in library(rstan)

stan_thin

see ?stan in library(rstan)

stan_iter

see ?stan in library(rstan)

stan_max_treedepth

see ?stan in library(rstan)

Value

list data having follow 5 components:

Examples

1
2
3

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