Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.cugtest

Plotting for cugtest Objects


Description

Plots the distribution of a CUG test statistic.

Usage

## S3 method for class 'cugtest'
plot(x, mode="density", ...)

Arguments

x

A cugtest object

mode

“density” for kernel density estimation, “hist” for histogram

...

Additional arguments to plot

Details

In addition to the quantiles associated with a CUG test, it is often useful to examine the form of the distribution of the test statistic. plot.cugtest facilitates this.

Value

None

Author(s)

Carter T. Butts buttsc@uci.edu

References

Anderson, B.S.; Butts, C.T.; and Carley, K.M. (1999). “The Interaction of Size and Density with Graph-Level Indices.” Social Networks, 21(3), 239-267.

See Also

Examples

#Draw two random graphs, with different tie probabilities
dat<-rgraph(20,2,tprob=c(0.2,0.8))

#Is their correlation higher than would be expected, conditioning 
#only on size?
cug<-cugtest(dat,gcor,cmode="order")
summary(cug)
plot(cug)

#Now, let's try conditioning on density as well.
cug<-cugtest(dat,gcor)
plot(cug)

sna

Tools for Social Network Analysis

v2.6
GPL (>= 2)
Authors
Carter T. Butts [aut, cre, cph]
Initial release
2020-10-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.