powered by
Functions for hypothesis testing with functional data. Test for Functional Linear Model
flm.test(fdataobj, y, B = 500, ...)
A list of class 'htest' with components:
The test statistic
Bootstrap p-value
Name of the test
An object of class 'fdata' (functional covariate).
Response vector.
Number of bootstrap samples for p-value computation.
Additional arguments.
Tests the goodness-of-fit for a functional linear model using the projected Cramer-von Mises statistic.
fd <- fdata(matrix(rnorm(200), 20, 10)) y <- rnorm(20) # \donttest{ test_result <- flm.test(fd, y, B = 100) test_result$p.value # }
Run the code above in your browser using DataLab