Description Usage Arguments Value Examples
This function runs the CARS procedure, constructing the auxiliary variables, computing the test statistics, choosing the cutoff and selecting the locations.
1 |
X |
the first matrix or data frame of observation |
Y |
the second matrix or date frame of observation |
alpha |
targeted FDR (false discovery rate) level |
tau |
the threshold for choosing interesting locations for density estimation, default is 0.5 |
variance |
for X and Y, default is NULL. If provided, in the form of a m*2 matrix, the columns are representing x and y's variance for each location |
option |
sparse case for FDR control or regular for FDR control. Sparse case has more stability when it comes to controlling FDR, power is slightly compromised |
A list containing the following components:
de |
decision for each location (0 or 1) |
cars |
estimated CARS statistics |
th |
threshold for CARS procedure |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.