conv_opt | R Documentation |
Solver for Bayesian Predictive Stacking of Predictive densities convex optimization problem
conv_opt(scores)
scores |
matrix |
W matrix of Bayesian Predictive Stacking weights for the K models considered
## Generate (randomly) K predictive scores for n observations
n <- 50
K <- 5
scores <- matrix(runif(n*K), nrow = n, ncol = K)
## Find Bayesian Predictive Stacking weights
opt_weights <- conv_opt(scores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.