# T.var: Test the equality of nonparametric curves or surfaces based... In fANCOVA: Nonparametric Analysis of Covariance

## Description

Test the equality of nonparametric curves or surfaces based on variance estimators. The specific model considered here is

y_ij= m_i(x_ij) + e_ij,

where m_i(.), are nonparametric smooth functions; e_ij are independent identically distributed errors. The errors e_ij do not have to be independent N(0, sigma^2) errors. The errors can be heteroscedastic, i.e., e_ij = sigma_i(x_ij) * u_ij, where u_ij are independent identically distributed errors with mean 0 and variance 1.

We are interested in the problem of testing the equality of the regression curves (when x is one-dimensional) or surfaces (when x is two-dimensional),

H_0: m_1(.) = m_2(.) = ... v.s. H_1: otherwise

The problem can also be viewed as the test of the equality in the one-sample problem for functional data.

## Usage

 1 2 3 4 T.var(x, ...) ## Default S3 method: T.var(x, y, group, B = 200, degree = 1, criterion = c("aicc", "gcv"), family = c("gaussian", "symmetric"), user.span = NULL, ...)

## Arguments

 x a vector or two-column matrix of covariate values. y a vector of response values. group a vector of group indicators that has the same length as y. B the number of bootstrap replicates. Usually this will be a single positive integer. degree the degree of the local polynomials to be used. It can ben 0, 1 or 2. criterion the criterion for automatic smoothing parameter selection: “aicc” denotes bias-corrected AIC criterion, “gcv” denotes generalized cross-validation. family if “gaussian” fitting is by least-squares, and if “symmetric” a re-descending M estimator is used with Tukey's biweight function. user.span the user-defined parameter which controls the degree of smoothing. ... some control parameters can also be supplied directly

## Details

A wild bootstrap algorithm is applied to test the equality of nonparametric curves or surfaces based on variance estimators.

## Value

An object of class “fANCOVA”.

## Author(s)

X.F. Wang [email protected]

## References

Dette, H., Neumeyer, N. (2001). Nonparametric analysis of covariance. Annals of Statistics. 29, 1361–1400.

Wang. X.F. and Ye, D. (2010). On nonparametric comparison of images and regression surfaces. Journal of Statistical Planning and Inference. 140, 2875–2884.