GWLelast.cv.bw {GWLelast}R Documentation

GWLelast.cv.bw

Description

Cross validation for geographically weighted logistic elastic net regression

Usage

GWLelast.cv.bw(x = x, y = y, D = D, coords = coords, alpha = 1,
  lambda = lambda, nlambda = nlambda, gweight = gweight,
  longlat = longlat, bw = bw)

Arguments

x

Covariates.

y

Outcome binary variable.

D

Distance matrix.

coords

2 columns matrix including "longitude" and "latitude".

alpha

The elasticnet mixing parameter [0,1] in glmnet package.

lambda

Optional user-supplied lambda sequence in glmnet package.

nlambda

The number of lambda values in glmnet package.

gweight

geographical kernel function in spgwr package.

longlat

Indicate if the coords parameter are sperically calculated.

bw

bandwidth of geographical kernel function.

Value

error Cross validation error.


[Package GWLelast version 1.2.2 Index]