reciptest2: Statistical tests for social reciprocity

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Estimating statistical significance for social reciprocity statistics at different levels of analysis.

Usage

1
   reciptest(X, pi ,rep=9999, names=NULL, label=FALSE)

Arguments

X

Original sociomatrix. Matrix X must be square.

pi

Matrix of probabilities Pij that specifies the null hypothesis regarding social reciprocity. Pi must be a square matrix

rep

Number of simulations for carrying out the randomization test. Number of simulations must be between 1 and 1000000.

names

Character vector with the names of individuals. IF label TRUE. then this vector should be specified.

label

Logical flag. TRUE. if names of individuals will be provided. Otherwise FALSE.

Details

reciptest estimates statistical significance for several measures of social reciprocity at different levels of analysis: overall measures of social reciprocity as PHIr, see getPHIr; dyadic measures as PHIij, see getPHIij; and individual measures as phii, see getphii. This procedure simulates a number of sociomatrices under specified null hypothesis regarding social reciprocity (e.g. complete reciprocation) by means of callings to a C routine included in the package, then computes the reciprocity measures at different levels. After rep simulations the sampling distributions for the statistics are estimated. Then statistical significance is computed as follows: p=NS+1/NOS+1 where NS is the number of times that simulated values is as great as or greater than the empirical values and NOS represents the number of simulated values when p-right value is computed. When estimating p-left value NS is the number of times that simulated values is as great as or lower than the empirical values.

Value

PHIr

Overall measure of asymmetry in social interactions.

PHIrexpec

Mathematical expectancy of the PHIr statistic.

PHIrSE

Standard error of the PHIr statistic.

phii

Individuals' contributions to asymmetry as actors.

phij

Individuals' contributions to asymmetry as partners.

phirmat

Dyadic directional contributions to asymmetry.

PHIij

Dyadic contributions to asymmetry.

Author(s)

David Leiva dleivaur@ub.edu, Antonio Solanas antonio.solanas@ub.edu.

References

Solanas, A., Leiva, D., Sierra, V., & Salafranca, Ll. (2009). Measuring and making decisions for social reciprocity. Behavior Research Methods, 41, 742-754.

See Also

getPHIr, getphii, getphij, getphirmat, getPHIij

Examples

1
2
3
4
  X=matrix(c(0, 1, 2, 1, 0, 1, 3, 1, 0),nrow=3,ncol=3)
  pi=matrix(c(0, 0.5, 0.5, 0.5, 0, 0.5, 0.5, 0.5, 0),nrow=3,ncol=3)
  rep=99999
  names=c("Ind.1","Ind.2","Ind.3")  

DLEIVA/DyaDA documentation built on May 6, 2019, 1:17 p.m.