ADtest: ADtest: A function to compare two estimated densities.

Description Usage Arguments Value Author(s) Examples

View source: R/ADtest.R

Description

This function takes two vectors of values and compares them, to determine if they come from the same distribution.

Usage

1
ADtest(x1, x2)

Arguments

x1

A vector of values. Defaults to NULL.

x2

A vector of values. Defaults to NULL.

Value

A list object, containing the following list elements.

ad$pvalue A pvalue indicating the confidence that the data are the same distribution.

ad$statistics The AD test statistic for comparing the two data sets.

Author(s)

Jennifer Starling

Examples

1
2
3
## Define ctrl object.
x <- rnorm(1000,0,1)
myProbHist(x)

jstarling1/starlib documentation built on May 20, 2019, 2:12 a.m.