SpatFD: Create a SpatFD object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/SpatFD.R

Description

Function that creates SpatFD objects; objects that hold all the information necessary for univariate or multivariate geostatistical prediction for functional data.

Usage

1
2
3
     SpatFD(data,coords,basis="Bsplines",nbasis=4,lambda=0,nharm=NULL,vp=NULL,name=NULL,add=NULL,...)
     SpatFD(data, coords, nharm=NULL, add=NULL,...)
     SpatFD(data, coords, vp=NULL, add=NULL,...)

Arguments

data

Is a matrix, data frame or fdata with the observed data

coords

A data frame or a matrix with two columns indicating X and Y coordinates

basis

A character specifying the basis functions, “Bsplines” or “Fourier”

nbasis

An integer variable specifying the number of basis functions. 4 by default.

lambda

A non negative real number specifying the amount of smoothing to be applied to the estimated functional parameter. 0 by default

nharm

The number of harmonics or principal components to compute.

vp

The percentage of variance to calculate the number of harmonics or principal components to compute.

name

Name of variable.

add

An object of class SpatFD to be added.

...

Arguments to be passed to the basis function creation (see create.bsplines.basis or create.fourier.basis).

Value

An object of class SpatFD, which inherits from list. Its components are:

SFD

An object of class SpatFD, where is specified the original data, the functional data and the components of the FPCA

Author(s)

Angie Villamil, Martha Bohorquez

See Also

KS_scores, scores, recons_fd

Examples

1
2
3
4
5
     ##---- Should be DIRECTLY executable !! ----
     ##-- ==>  Define data, use random,
     ##--	or do  help(data=index)  for the standard data sets.

     ## The function is currently defined as

catalinavillamil/SpatFD documentation built on May 2, 2021, 4:21 a.m.