make_glm_family: GLM family specification for KL-Optimality

View source: R/glm_families.R

make_glm_familyR Documentation

GLM family specification for KL-Optimality

Description

Returns a GLM family object for use with criterion = "KL-Optimality". The family encodes the cumulant generating function and canonical link needed to compute the Kullback-Leibler divergence between two distributions.

Usage

make_glm_family(name)

Arguments

name

character; one of "Normal", "Poisson", "Binomial" or "Gamma".

Value

A named list with elements b, b_prime, b_dbl, link, link_inv and name.

Examples

make_glm_family("Poisson")
make_glm_family("Normal")

optedr documentation built on June 23, 2026, 5:07 p.m.