Learn R Programming

GWLelast (version 1.2.2)

GWLelast.sel.bw: GWLelast.sel.bw

Description

Bandwidth selection forgeographically weighted logistic elastic net regression

Usage

GWLelast.sel.bw(x, y, coords, D = NULL, alpha = 1, lambda = NULL,
  nlambda = NULL, gweight = gweight, longlat = TRUE, lower.bw = NULL,
  upper.bw = NULL)

Arguments

x

Covariates.

y

Outcome binary variable.

coords

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

D

Distance matrix.

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.

lower.bw

Lower limit of bandwidth in geographical kernel.

upper.bw

Upper limit of bandwidth in geographical kernel.

Value

optimal.bw Optimal bandwidth.

Examples

Run this code
# NOT RUN {
######################
# Need to add
# }

Run the code above in your browser using DataLab