pOne: Calculate One-side P-value

Description Usage Arguments Value Author(s) See Also Examples

View source: R/checkingTRC.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to pOne in geoCount...