Description Usage Arguments Value Examples
Method to allocate units per population domain
1 2 3 4 | AllocateUnits(object, Param)
## S4 method for signature 'UnitPrioritization,UnitAllocParam'
AllocateUnits(object, Param)
|
object |
Object upon which the allocation is to be computed. |
Param |
Parameters to allocate the units in each domain. |
Integer vector with the number of allocated units per domain.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
UnitAllocParam <- new(Class = 'UnitAllocParam',
MaxAlloc = as.integer(c(23, 23, 45, 23, 12, 23, 26, 76, 12, 1, 1, 1)),
MinAlloc = rep(2L, length = 12),
AllocFactors = list(c(0.43, 0.12, 0.234, 0.123, 0.934, 0.23, 0.754, 0.423, 0.923, 0.345, 0.512, 0.623),
c(0.43, 0.123, 0.34, 0.3, 0.34, 0.13, 0.954, 0.523, 0.223, 0.445, 0.522, 0.323)),
DomainWeights = c(0.34, 0.12, 0.1, 1, 123, 0.12, 56, 123, 98, 12, 23, 87),
MaxUnits = 265L )
AllocateUnits(PriorUnits, UnitAllocParam)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.