Description Usage Arguments Value Examples
unequal weights case
1 | f_crps_wgm(mu, sig2, obs, w)
|
mu |
mixture means |
sig2 |
mixture variance |
obs |
observations |
w |
mixture component probability |
the crps score
1 2 3 4 5 6 7 8 9 10 | set.seed(1)
truth <- 0
n <- 20
ens.means <- rnorm(n, truth, 1)
w <- dnorm( ens.means - truth)
w <- w/sum(w)
f_crps_wgm(mu=ens.means, sig2=.1, obs=truth, w=w)
sigvec <- rgamma(n, 1)
f_crps_wgm(mu=ens.means, sig2=sigvec, obs=truth, w=w)
f_crps_wgm( mu=ens.means, sig2=.1, obs=truth, w=rep(1/n, n))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.