Description Usage Arguments Details Value Examples
cv.gsvcm
implements k-fold cross-validation MSPE for generalized spartially varying coefficient regression, and returns the mean squared prediction error (MSPE).
1 2 3 |
y |
The response of dimension |
X |
The design matrix of dimension |
S |
The cooridinates of dimension |
V |
The |
Tr |
The triangulation matrix of dimention |
d |
The degree of piecewise polynomials – default is 2.
|
r |
The smoothness parameter – default is 1, and 0 ≤ |
lambda |
The vector of the candidates of penalty parameter – default is grid points of 10 to the power of a sequence from -6 to 6 by 0.5.
|
family |
The family object, specifying the distribution and link to use.
|
off |
offset – default is 0.
|
r.theta |
The endpoints of an interval to search for an additional parameter |
nfold |
The number of folds – default is 10. Although |
initial |
The seed used for cross-validation sample – default is 123.
|
eps.sigma |
Error tolerance for the Pearson estimate of the scale parameter, which is as close as possible to 1, when estimating an additional parameter |
method |
GSVCM or GSVCMQR. GSVCM is based on Algorithm 1 in Subsection 3.1 and GSVCMQR is based on Algorithm 2 in Subsection 3.2 – default is GSVCM.
|
Cp |
TRUE or FALSE. There are two modified measures based on the QRGSVCM method for smoothness parameters in the manuscript. TRUE is for Cp measure and FALSE is for GCV measure.
|
This R package is the implementation program for manuscript entitled "Generalized Spatially Varying Coefficinet Models" by Myungjin Kim and Li Wang.
The k-fold cross-validation (CV) mean squared prediction error (MSPE).
1 | # See an example of fit.gsvcm.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.