Skip to contents

Margin families describe how a candidate is fitted. Implementations provide fit_margin() and margin_info() methods. Their margin_info() result must contain family_name and types. Every fitter receives the observations, observation weights, and requested variable type. It must either use the weights or reject them.

Usage

fit_margin(family, x, weights = numeric(), type = "c")

Arguments

family

a margin-family specification.

x

observed values.

weights

observation weights, or numeric().

type

requested variable type.

Value

fit_margin() returns a fitted margin.