logbin.smooth.design
constructs the design matrix and associated formula
for an logbin.smooth
model, given a particular parameterization,
to be passed into logbin
for fitting.
This is a workhorse function -- it would not normally be called directly.logbin.smooth.design(interpret, allref, design.knots, design.param)
interpret.logbin.smooth
for the desired model, containing details of the smooth components.logbin.smooth.allref
for the desired model.NA
for Iso
terms).allref$allref
. Each element corresponds to a smooth
term in the model, and the value indicates which item in
the associated list is the reference level for this
parameterizatiointerpret$full.formula
, with the
smooth terms removed and replaced by the names of their associated
basis components.interpret$data
, with columns
for the basis functions of the smooth terms added.allref$monotonic
, such that
the coefficients associated with the smooth terms for this parameterization
are constrained to be non-negative.NA
for Iso
terms).logbin.smooth.design
constructs the associated design matrix and formula. Specifically, for Iso
smooth
components, it creates the matrix of indicator covariates for increments between
levels. For B
smooth components, it creates the basis functions using
splineDesign
and removing the column associated with
the reference level (see Donoghoe and Marschner (2014)).
The formula
component is altered to include the terms in the design matrix,
and allref$monotonic
is altered such that all of the smooth coefficients
are restricted to be non-negative, as required.logbin.smooth
, interpret.logbin.smooth
,
logbin.smooth.allref
, logbin.design