Defines a nonparametric functional model. Constructor function of the S3 class npf.model.

npf.model(lp, var, svm)

# S3 method for npf.model
residuals(object, as.npf.data = TRUE, ...)

# S3 method for npf.model
plot(
  x,
  y = NULL,
  main.trend = "Functional trend estimate",
  main.svar = "Semivariogram estimate",
  ...
)

Arguments

lp

local polynomial estimate of the functional variance (object of class npf.var).

var

(optional) a vector or an object of class npf.var with the estimated (or theoretical) variances.

svm

fitted variogram model (object of class npsp::fitsvar).

object

object used to select a method.

as.npf.data

logical; if TRUE (default) returns a npf.data-class object containing the residuals.

...

additional graphical parameters (passed to plot.npf.locpol).

x

a nonparametric functional model object. Typically an output of npf.fit.

y

ignored argument.

main.trend

title for the trend plot.

main.svar

title for the semivariogram plot.

Value

Returns an object of class npf.model (extending npf.locpol), the lp argument with the others as additional components.