This function fits a local LAGR model at loc
, and returns its sum of squared residuals (SSR) as a proportion of the SSR from a global model. This proportion is how the bandwidth is specified under nen
.
1 2 3 |
bw |
kernel bandwidth (distance) to use for fitting the local model |
x |
matrix of observed covariates |
y |
vector of observed responses |
family |
exponential family distribution of the response |
loc |
location around which to center the kernel |
coords |
matrix of locations, with each row giving the location at which the corresponding row of data was observed |
dist |
vector of distances from central location to the observation locations |
kernel |
kernel function for generating the local observation weights |
varselect.method |
criterion to minimize in the regularization step of fitting local models - options are |
verbose |
print detailed information about our progress? |
longlat |
|
bw |
bandwidth parameter |
bw.type |
type of bandwidth - options are |
tol.loc |
tolerance for the tuning of an adaptive bandwidth (e.g. |
tuning |
logical indicating whether this model will be used to tune the bandwidth, in which case only the tuning criteria are returned |
D |
pre-specified matrix of distances between locations |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.