ycheck function

Check Data Arrays for Smoothing Functions

Check Data Arrays for Smoothing Functions

Check a numeric vector, a matrix or an array of data values for consistency with the number of argument values.

ycheck(y, n)

Arguments

  • y: A numeric vector, matrix, or 3D array, with first dimension size n.
  • n: The number of argument values for smoothing.

Returns

Argument y is returned if it checks out, converted to a one-column matrix if the input was a numeric vector.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

smooth.basis1, smooth.monotone, smooth.pos, smooth.monotone, smooth.surp