pspline_fitter {JOPS} | R Documentation |
P-spline fitting algorithm for the GLM.
Description
pspline_fitter
appies the method of scoring
to a variety of response distributions and link functions within
for P-spline fitting within the GLM framework.
Usage
pspline_fitter(
y,
B,
family = "gaussian",
link = "identity",
P,
P_ridge = 0 * diag(ncol(B)),
wts = 0 * y + 1,
m_binomial = 0 * y + 1,
r_gamma = 0 * y + 1
)
Arguments
y |
the glm response vector of length |
B |
The effective P-spline regressors, e.g. |
family |
the response distribution, e.g. |
link |
the link function, one of |
P |
P-spline ("half") penalty matrix for data augmentation, such that |
P_ridge |
ridge ("half") penalty for data augmentation, usually |
wts |
the weight vector of |
m_binomial |
a vector of binomial trials having |
r_gamma |
a vector of gamma shape parameters, when |
Value
coef |
the estimated P-spline coefficient regressor, using the effective regressors. |
w |
|
f |
the |
eta |
the linear predictor from |