Skip to contents

Helper function used within mm and hm to specify the identifier variables that define memberships and nesting structures. In multiple-membership models, id() links member-level units (e.g., party IDs) to group-level units (e.g., government IDs). In hierarchical models, id() specifies the nesting-level identifier (e.g., country ID).

Usage

id(...)

Arguments

...

Unquoted variable names from your data:

  • For mm(): Two identifiers id(mmid, mainid) where mmid identifies member-level units and mainid identifies group-level units

  • For hm(): One identifier id(hmid) where hmid identifies nesting-level units

Value

A bml_id object containing the variable names as character strings.

See also

Examples

if (FALSE) { # \dontrun{
# Multiple-membership: parties (pid) within governments (gid)
id(pid, gid)

# Hierarchical: governments within countries
id(cid)
} # }