Inner part of fitting GWLelast without parallel cores

Share:

Description

Inner part of fitting GWLelast without parallel cores

Usage

1
2
GWLelast.inner(x = x, y = y, coords = coords, W = W, lambda = lambda,
  alpha = 1, nlambda = nlambda)

Arguments

x

Covariates.

y

Outcome binary variable.

coords

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

W

Weight matrix.

lambda

Optional user-supplied lambda sequence in glmnet package.

alpha

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

nlambda

The number of lambda values in glmnet package.

Value

model Fitted model at location i.

cv.error Cross validation error.