Learn R Programming

geoCount (version 1.150120)

pOne: 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).

See Also

e2dist, baseline.dist, pRPS, plot_pRPS.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab