Description Usage Arguments Details Value Author(s) Examples
Currently there are only GIS functions for producing spatial concentration maps (GIS.Concentration.matrix
) and using (closed) spatial
population data to calculate exposure (GIS.Exposure
).
1 | odirichlet(a, n = 0, ...)
|
a |
|
n |
|
... |
arguments passed to |
Odirichlet is based on functions ddirichlet and rdirichlet from gtools dirichlet.R (originally contributed by Ian Wilson). The "Dirichlet function" is the multidimensional generalization of the beta distribution: it's the Bayesian canonical distribution for the parameter estimates of a multinomial distribution. Odirichlet samples from the dirichlet distribution given parameter vectors that are processed by oapply.
ovariable
T. Rintala teemu.rintala.a@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | openv$N <- 5
test <- Ovariable(
output=data.frame(
a = 1:4,
b = rep(letters[1:4], each = 4),
c = rep(toupper(letters[1:4]), each = 4^2),
Result = 1:(4^3)),
marginal=c(rep(TRUE, 3), FALSE))
out <- odirichlet(test, cols = "a")
oapply(out, FUN = sum, cols = "a")
test <- Ovariable(
output=data.frame(
a = 1:4,
b = rep(letters[1:4], each = 4),
Iter = rep(toupper(letters[1:4]), each = 4^2),
Result = 1:(4^3)),
marginal=c(rep(TRUE, 3),FALSE))
out <- odirichlet(test, cols = "a")
oapply(out, FUN = sum, cols = "a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.