powered by
Tests whether the mean function equals a specified value.
fmean.test.fdata(fdataobj, mu0 = NULL, B = 500, ...)
A list of class 'htest' with components:
The test statistic
Bootstrap p-value
Name of the test
An object of class 'fdata'.
Hypothesized mean function (vector). If NULL, tests against zero.
Number of bootstrap samples for p-value computation.
Additional arguments.
fd <- fdata(matrix(rnorm(200), 20, 10)) # \donttest{ test_result <- fmean.test.fdata(fd, B = 100) test_result$p.value # }
Run the code above in your browser using DataLab