Learn R Programming

fdars (version 0.3.3)

fmean.test.fdata: Test for Equality of Functional Means

Description

Tests whether the mean function equals a specified value.

Usage

fmean.test.fdata(fdataobj, mu0 = NULL, 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'.

mu0

Hypothesized mean function (vector). If NULL, tests against zero.

B

Number of bootstrap samples for p-value computation.

...

Additional arguments.

Examples

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