R/np.svar.npf.R
np.svar.npf.Rd
Creates a svar.bin
(binned semivar. + grid parameters) object with
the binned intra-curves semivariances (i.e. computes a binned sample variogram).
# S3 method for npf.data
np.svar(
x,
h = NULL,
maxlag = NULL,
nlags = round(0.55 * x$grid$n),
minlag = x$grid$lag,
degree = 1,
drv = FALSE,
hat.bin = TRUE,
ncv = 0,
...
)
# S3 method for npf.locpol
np.svar(
x,
var,
h = NULL,
maxlag = NULL,
nlags = round(0.55 * x$grid$n),
minlag = x$grid$lag,
degree = 1,
drv = FALSE,
hat.bin = TRUE,
ncv = 0,
...
)
object used to select a method.
(full) bandwidth matrix (controls the degree of smoothing; only the upper triangular part of h is used).
maximum lag. Defaults to (nlags - 1) * minlag
.
number of lags. Defaults to round(0.55 * x$grid$n)
.
minimun lag. Defaults to that of the discretization grid.
degree of the local polynomial used. Defaults to 1 (local linear estimation).
logical; if TRUE
, the matrix of estimated first derivatives is returned.
logical; if TRUE
, the hat matrix of the binned data is returned.
integer; determines the number of cells leaved out in each dimension. Defaults to 0 (the full data is used) and it is not normally changed by the user in this setting. See "Details" below.
further arguments passed to npsp::svariso
.
(optional) a vector or an object of class npf.var
with the estimated (or
theoretical) variances.
Returns an object of S3 class npsp::np.svar
.
Only one of the arguments maxlag
or nlags
must be specified.
See npsp::np.svar
for more details.