Extract contrast coefficients from a null claim
Source:R/hypothesis-helpers.R
claim_contrast_coefs.RdDecomposes the hypothesis into a named numeric vector of coefficients,
one per param_obj term, plus the hypothesized scalar value and operator.
Arguments
- claim
A
null_claimobject.- filter
Optional. The name of a conditioning slot (e.g.
"given") that everyparam_objterm must supply. If a term's class declares that slot as an optional constructor argument (defaultNULL) but the slot is unset on the node, an error is raised. IfNULL(the default), the slot to enforce is auto-detected per term by inspecting its class constructor's optional formals (those defaulting toNULL) and requiring the first such slot found.