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

Description Usage Arguments Value Author(s) Examples

View source: R/KStest.R

Description

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

Usage

1
KStest(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.

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

ks$statistics The KS 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.