Learn R Programming

fdars (version 0.3.3)

flm.test: Statistical Tests for Functional Data

Description

Functions for hypothesis testing with functional data. Test for Functional Linear Model

Usage

flm.test(fdataobj, y, B = 500, ...)

Value

A list of class 'htest' with components:

statistic

The test statistic

p.value

Bootstrap p-value

method

Name of the test

Arguments

fdataobj

An object of class 'fdata' (functional covariate).

y

Response vector.

B

Number of bootstrap samples for p-value computation.

...

Additional arguments.

Details

Tests the goodness-of-fit for a functional linear model using the projected Cramer-von Mises statistic.

Examples

Run this code
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