pspline_fitter | R Documentation |
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.
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
)
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 |
coef |
the estimated P-spline coefficient regressor, using the effective regressors. |
w |
|
f |
the |
eta |
the linear predictor from |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.