indTest: A independence test by bootstrap method using R

Description Usage Arguments Value Examples

View source: R/indTest.R

Description

This funtion performs independence test using kernel density method and bootstrap method. To use the function, you should make sure you've installed R_package "kedd"

Usage

1
indTest(x, y, B, alpha = 0.05)

Arguments

x, y

numeric vectors of data values which need to test

B

the number of bootstrap replications

alpha

the significance level (default 0.05)

Value

the test result with p_value

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(kedd)
data("faithful")
x <- faithful$eruptions
y <- faithful$waiting
B <- 20
indTest(x,y,B,0.01)
 
## End(Not run)

SC19057/package documentation built on Jan. 3, 2020, 12:10 a.m.