Defining Smooths in logbin.smooth Formulae
Function used in the definition of smooth terms within
model formulae. The function does not evaluate a smooth — it exists purely to help
set up a model using smooths.
1 2 3
variable that this smooth is a function of. Note that unlike
unique positions of interior knots of a B-spline basis. Boundary knots are created automatically.
At least one of
The function does not evaluate the variable arguments; the output from this function is used when producing the model matrix, at which point the actual basis functions are constructed.
B is used to specify an order-3 B-spline basis (which can be
restricted to be monotonically non-decreasing via the
mono argument in
length(knot.range) > 1, models with each of the
specified number of interior knots will be fit, and the model
with the best (smallest)
aic.c will be returned.
Iso is used to specify an isotonic basis, designed
such that the resulting function has non-negative
increments at each observed covariate value. When
Iso is used, the resulting function will always be
monotonically non-decreasing, regardless of the value of
An object of class
Iso), which is a list with
the following elements:
name of the term
provided in the
label for the term in the model; e.g. for
vector of interior knots (if
vector of number of interior knots.
Mark W. Donoghoe firstname.lastname@example.org
s performs a similar function in the
## See example(logbin.smooth) for an example of specifying smooths in model ## formulae.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.