stat.p: P-value

View source: R/stat.p.R View source: R/perm.p.R

stat.pR Documentation

P-value

Description

Calculation of the p-value based on a posterior distribution through data permutations.

Calculation of the p-value based on a posterior distribution through data permutations.

Usage

stat.p(metrics, stat.hist = FALSE)

stat.p(metrics, stat.hist = FALSE)

Arguments

metrics

an integer vector of permuted statistical values of interest

stat.hist

if true, a stat.hist of the posterior distribution is ploted. The observed metric is also ploted.

histogram

if true, an histogram of the posterior distribution is ploted. The observed metric is also ploted.

Details

Due to data dependency, a valuable p-value in social networking has to be computed through a null model approach.

Due to data dependency, a valuable p-value in social networking has to be computed through a null model approach.

Value

  • An integer vector of left and rigth p-values, if metrics is an integer vector and if histogram is false.

  • An integer vector of left and rigth p-values and an histogram of the posterior distribution, if metrics is an integer vector and if histogram is false.

  • An integer vector of left and rigth p-values, if metrics is an integer vector and if stat.hist is false.

  • An integer vector of left and rigth p-values and an histogram of the posterior distribution, if metrics is an integer vector and if stat.hist is false.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Farine, D. R. (2017). A guide to null models for animal social network analysis. Methods in Ecology and Evolution.

Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.

Farine, D. R. (2017). A guide to null models for animal social network analysis. Methods in Ecology and Evolution.

Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.