| LN2 {demest} | R Documentation |
THIS FUNCTION IS STILL EXPERIMENTAL.
LN2( constraint, structuralZeros = NULL, concordances = list(), priorSD = HalfT() )
constraint |
An object of class |
structuralZeros |
Location of any structural zeros
in the data. An object of class |
concordances |
A named list of concordances used to
map between |
priorSD |
An object of class |
A simple hierarchical model in which the log of y + 1 equals the log of exposure + 1, plus a bias term. The bias term can be subject to constraints.
The bias term has the same level of detail as the constraints,
which will almost always be less than the level of detail
of y.
The constraints are specified via a Values,
object composed of 0s, -1s, 1s, and NAs. A 0
implies that the bias term is set to 0; a
-1 implies that it must be negative; a 1
implies that it must be positive, and a NA
implies that there is no constraint.