Learn R Programming

curvetest (version 2.2)

alpha2h: Test Equality of Curves with Homoscedastic or Heteroscedastic Errors.

Description

For each value $at$ in the defining interval, find a bandwidth $h$ so that alpha*100 percent of data points specified in $xseq$ should be within the $(x-h, x+h)$ window. This is a utility function.

Usage

alpha2h(alpha, at, xseq)

Arguments

alpha
Smoothing parameter that for each point in the domain, use a windown width that should have alpha*100 percent of data points falling in the window.
at
a point in the x domain.
xseq
Sequence of the data points.

Value

References

Zhongfa Zhang, et al: Test Equality of Curves with Homoscedastic or Heteroscedastic Errors. To appear.

See Also

curvetest, curvefit, print.curvetest, plot.curvetest

Examples

Run this code
    x= runif(100)
    (h=alpha2h(0.3, at=0.5, xseq=x))  ##get the window width h around x=.5 so that 30% data points of xseq fall in the area.  
  

Run the code above in your browser using DataLab