pois_bugs: Bugs code for Poisson response

View source: R/simulateabn.R

pois_bugsR Documentation

Bugs code for Poisson response

Description

Bugs model for count response variable X \sim \mathcal{Pois}(\lambda).

Usage

pois_bugs(nodename, nodesintercept, parentnames, parentcoefs)

pois_bugsGroup(nodename, nodesintercept, parentnames, parentcoefs, sigma_alpha)

Arguments

nodename

character string of response variable name.

nodesintercept

overall mean of response. Parameter from fixed-effects intercept.

parentnames

single character string (for one parent) or vector of characters (for multiple parent nodes) with parent node (predictor variables) names.

parentcoefs

overall slope for each predictor (parent node) variable (fixed-effects).

sigma_alpha

between-group variance. Parameter from random-effects intercept.

Value

Bugs model returned as stdout.

Functions

  • pois_bugsGroup(): Bugs code for Poisson response with varying intercept

See Also

makebugs simulateAbn

Examples

pois_bugs(nodename = "a",
          parentnames = c("b", "c"),
          nodesintercept = c(0.318077),
          parentcoefs = list("b"=c(b=0.3059395),
                             "c"=c(c=0.5555)))

abn documentation built on Nov. 3, 2023, 5:08 p.m.