Description Usage Arguments Value Author(s) See Also Examples
View source: R/interpret.logbin.smooth.r
This is an internal function of package logbin
.
It is a service routine for logbin.smooth
which interprets the
smooth parts of the model formula and returns modified formulas to be used
in the fitting functions.
Not normally called directly.
1 |
formula |
A formula as supplied to |
A list with components:
full.formula |
a |
fake.formula |
a |
smooth.spec |
a named list containing the results of |
smooth.ind |
a vector containing the indices of the smooth components in
the |
terms |
the result of running |
Mark W. Donoghoe markdonoghoe@gmail.com
1 2 3 4 5 6 | # Specify a smooth model with knot.range
res <- interpret.logbin.smooth(y ~ B(x, knot.range = 0:2) + x2)
# The knot.range is removed from the full.formula...
print(res$full.formula)
# ...but is stored in the $smooth.spec component of the result:
print(res$smooth.spec$x$knot.range)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.