GWLelast.inner {GWLelast} | R Documentation |
GWLelast.inner
Description
Inner part of fitting GWLelast without parallel cores
Usage
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.
error Cross validation error.
[Package GWLelast version 1.2.2 Index]