Cross validation for geographically weighted logistic elastic net regression
GWLelast.cv.bw(x = x, y = y, D = D, coords = coords, alpha = 1,
lambda = lambda, nlambda = nlambda, gweight = gweight,
longlat = longlat, bw = bw)Covariates.
Outcome binary variable.
Distance matrix.
2 columns matrix including "longitude" and "latitude".
The elasticnet mixing parameter [0,1] in glmnet package.
Optional user-supplied lambda sequence in glmnet package.
The number of lambda values in glmnet package.
geographical kernel function in spgwr package.
Indicate if the coords parameter are sperically calculated.
bandwidth of geographical kernel function.
error Cross validation error.