fstat: Creates an 'fstat' structure.

Usage Arguments Details Author(s)

Usage

1
fstat(g = NULL, vName, Coordinates, Functions, scalar = FALSE)

Arguments

g

- An existing fstat structure (optional). Defaults to NULL.

vName

- Variable name. Note this will be the name used in all analyses.

Coordinates

- All coordinates/covariates associated with the functional data (a data.frame).

Functions

- A data frame with functional data stacked in columns.

scalar

- Scalars or Functions? (default: scalar = FALSE). Note: this will determine forecasting, variograms, etc.

Details

Returns an fstat structure which is a simple R list consisting of the following slots: a) data - a list with all data, each element has two slots: coordinates and functions; b) variograms - an empty slot reserved for empirical variograms computed with fvariogram c) models - an empty slot reserved for variogram models computed with fit.variogram or fit.lmc

When adding functional data, the code will check whether covariates passed in coordinates data frame match the covariates in the coordinates data frame that is already present at slot $data[[1]]$coordinates. If they don't an error will pop up. Extra covariates are removed without prompt. You've been warned!

Note that if parameter scaling (i.e. unit cube) is required, that should be performed as a part of pre-processing. see help(scaleInput) function of this package.

Author(s)

Ogy Grujic (ogyg@stanford.edu), Alessandra Menafoglio (alessandra.menafoglio@polimi.it)


ogru/fdagstat documentation built on May 29, 2019, 7:19 a.m.