LN2 {demest} | R Documentation

## Log-normal model with two levels

### Description

THIS FUNCTION IS STILL EXPERIMENTAL.

### Usage

    LN2(
      constraint,
      structuralZeros = NULL,
      concordances = list(),
      priorSD = HalfT()
    )

### Arguments

`constraint` | An object of class `Values`, with values 0, -1, 1, and NA.
`structuralZeros` | Location of any structural zeros in the data. An object of class `Values`, or, for the typical case, the word `"diag"`.
`concordances` | A named list of concordances used to map between `y` and `constraint`.
`priorSD` | An object of class `HalfT` specifying a non-default prior for the standard deviation in the likelihood for the normal model.

### Details

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.

[Package demest version 0.0.0.3.1 Index]