| BivariateFitters {GeDS} | R Documentation |
Fitter function for GeD Spline Regression for bivariate data
Description
These are computing engines called by NGeDS, needed for the
underlying fitting procedures.
Usage
BivariateFitter(
X,
Y,
Z,
W,
weights = rep(1, length(X)),
Indicator,
beta = 0.5,
phi = 0.99,
min.intknots = 0,
max.intknots = 300,
q = 2,
Xextr = range(X),
Yextr = range(Y),
show.iters = TRUE,
tol = as.double(1e-12),
stoptype = c("SR", "RD", "LR"),
higher_order = TRUE,
Xintknots = NULL,
Yintknots = NULL
)
GenBivariateFitter(
X,
Y,
Z,
W,
family = family,
weights = rep(1, length(X)),
Indicator,
beta = 0.5,
phi = 0.5,
min.intknots = 0,
max.intknots = 300,
q = 2,
Xextr = range(X),
Yextr = range(Y),
show.iters = TRUE,
tol = as.double(1e-12),
stoptype = c("SR", "RD", "LR"),
higher_order = TRUE
)
Arguments
X |
a numeric vector containing |
Y |
a numeric vector containing |
Z |
a vector of size |
W |
a design matrix with |
weights |
an optional vector of size |
Indicator |
contingency table of |
beta |
numeric parameter in the interval |
phi |
numeric parameter in the interval |
min.intknots |
optional parameter allowing the user to set a minimum number of internal knots required. By default equal to zero. |
max.intknots |
optional parameter allowing the user to set a maximum
number of internal knots to be added by the GeDS estimation algorithm. By
default equal to the number of internal knots |
q |
numeric parameter which allows to fine-tune the stopping rule of
stage A of GeDS, by default equal to 2. See details in the description of
|
Xextr |
boundary knots in the |
Yextr |
boundary knots in the |
show.iters |
logical variable indicating whether or not to print
information at each step. By default equal to |
tol |
numeric value indicating the tolerance to be used in checking whether two knots should be considered different during the knot placement steps in stage A. |
stoptype |
a character string indicating the type of GeDS stopping rule
to be used. It should be either |
higher_order |
a logical that defines whether to compute the higher
order fits (quadratic and cubic) after stage A is run. Default is
|
Xintknots |
vector of starting internal knots in the |
Yintknots |
vector of starting internal knots in the |
family |
a description of the error distribution and link function to be
used in the model. This can be a character string naming a family function
(e.g. |
Value
A GeDS-Class object, but without the Formula,
extcall, terms and znames slots.
References
Dimitrova, D. S., Kaishev, V. K., Lattuada, A. and Verrall, R. J. (2023).
Geometrically designed variable knot splines in generalized (non-)linear
models.
Applied Mathematics and Computation, 436.
DOI: doi:10.1016/j.amc.2022.127493
See Also
NGeDS and UnivariateFitters.