| mean.mfd | R Documentation |
Computes the mean function for an object of class mfd.
## S3 method for class 'mfd'
mean(x, ...)
x |
An object of class |
... |
Further arguments are ignored (required for S3 consistency). |
The method averages the coefficient array across the observation dimension,
resulting in a new mfd object with one observation (the sample mean).
An object of class mfd representing the mean function. The
output contains a single observation, corresponding to the mean function
for each variable.
mfd, plot.mfd
library(funcharts)
data(air)
mfdobj <- get_mfd_list(air)
mean_result <- mean(mfdobj)
plot(mean_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.