powered by
A function that samples predictive distributions for univariate continuous data using the bivariate Gaussian copula.
copre( data, N, k, rho = 0.91, grd_res = 1000, nthreads = parallel::detectCores(), gpu = FALSE, gpu_path = NULL, gpu_odir = NULL, gpu_seed = 1234 )
A copre_result object, whose underlying structure is a list which contains the following components:
copre_result
The data from which to sample predictive distributions.
The number of unobserved data points to resample for each chain.
The number of predictive distributions to sample.
A scalar concentration parameter.
The number of points on which to evaluate the predictive distribution.
The number of threads to call for parallel execution.
A logical value indicating whether or not to use the CUDA implementation of the algorithm.
The path to the CUDA implementation source code.
A directory to output the compiled CUDA code.
A seed for the CUDA random variates.
Fong, E., Holmes, C., Walker, S. G. (2021). Martingale Posterior Distributions. arXiv. DOI: tools:::Rd_expr_doi("10.48550/arxiv.2103.15671")
res_cop <- copre(rnorm(50), 10, 10, nthreads = 1)
Run the code above in your browser using DataLab