Learn R Programming

qbrms (version 1.0.1)

extract_family_name: Extract Family Name from INLA Family Specification

Description

Extracts the family name from an INLA family specification, handling both character strings and lists (e.g., for quantile regression).

Helper function to extract family name handling both strings and lists.

Usage

extract_family_name(inla_family)

extract_family_name(inla_family)

extract_family_name(inla_family)

Value

Character string containing the family name.

Character string with family name.

Arguments

inla_family

INLA family specification (string or list).

Examples

Run this code
if (FALSE) {
# Character family
extract_family_name("gaussian")  # "gaussian"

# List family (from quantile regression)
ald_spec <- convert_family_to_inla(asymmetric_laplace(), quantile = 0.9)
extract_family_name(ald_spec)    # "asymmetric_laplace"
}

Run the code above in your browser using DataLab