rkpk {gss}R Documentation

Interface to RKPACK

Description

Call RKPACK routines for numerical calculations for fitting and predicting from Smoothing Spline ANOVA models.

Usage

sspreg(s, q, y, method="v", varht=1)
mspreg(s, q, y, method="v", varht=1, prec=1e-7, maxiter=30)
sspregpoi(family, s, q, y, wt, offset, method="u",
          varht=1, prec=1e-7, maxiter=30)
mspregpoi(family, s, q, y, wt, offset, method="u",
          varht=1, prec=1e-7, maxiter=30)
getcrdr(obj, r)
getsms(obj)

Arguments

s Design matrix of fixed effects.
q Inverse variance-covariance matrices of random effects.
y Model response.
method Method for smoothing parameter selection.
varht Assumed dispersion parameter, needed only for method="u".
prec Precision requirement for iterations.
maxiter Maximum number of iterations allowed.
family Error family.
wt Model weights.
offset Model offset.
obj Object returned from a call to sspreg, mspreg, sspregpoi, or mspregpoi.

Details

sspreg is used by ssanova to fit Gaussian models with a single smoothing parameter. mspreg is used to fit Gaussian models with multiple single smoothing parameters.

sspregpoi is used by gssanova to fit non Gaussian models with a single smoothing parameter. mspregpoi is used to fit non Gaussian models with multiple single smoothing parameters.

getcrdr and getsms are used by predict.ssanova to calculate standard errors of the fitted terms.

References

Gu, C. (1989), RKPACK and its applications: Fitting smoothing spline models. In ASA Proceedings of Statistical Computing Section, pp. 42–51.