Description Usage Arguments Value Examples
Samples the changepoint model using Stan and returns the stanfit object as a result.
1 2 | changepoint(x, chains = 2, iter = 1000, allpars = FALSE,
cores = max(parallel::detectCores() - 1, 1), ...)
|
x |
the time series to perform the analysis on |
chains |
the number of chains to use which defaults to 2 |
iter |
the number of samples to pull which defaults to 1000 |
allpars |
decides if all parameters should be returned or not. FALSE which is the default only gives the mu's and the sigmas and the tau |
cores |
the number of cores to use which defaults to max(parallel::detectCores()-1, 1) |
... |
other arguments passed to the sampling method in rstan |
the stanfit from the sampled changepoint model
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.