pOne {geoCount}R Documentation

Calculate One-side P-value

Description

This function calculates one-side p-value(s) for observed distance(s) with respect to the samples of baseline distances.

Usage

pOne(d.obs, d.base)

Arguments

d.obs

a value (or a vector) which indicates the distance for observed data

d.base

a vector (or a matrix) which indicates the samples of baseline distances

Value

A p-value (or a vector of p-values).

Author(s)

Liang Jing ljing918@gmail.com

See Also

e2dist, baseline.dist, pRPS, plot_pRPS.

Examples

## Not run: 
# For single value
pOne(2, rnorm(10000)) 
# Visualize with plot_pRPS()
plot_pRPS(2, rnorm(10000), nm="d")
# For vector
pOne(1:3, matrix(rnorm(30000),,3))

## End(Not run)

[Package geoCount version 1.150120 Index]