twowayTable {CoCiteStats}R Documentation

Compute a two way co-citation table for 2 genes.

Description

This function computes a two way table for comparing co-citation, in PubMed for the two input genes. The values in the table can be adjusted according to either the paper size or the gene size.

Usage

twowayTable(g1, g2, weights = TRUE, numPapers, PaperLen)

Arguments

g1 The LocusLink identifier for gene 1.
g2 The LocusLink identifier for gene 2.
weights TRUE or FALSE indicating whether paper size weights should be used.
numPapers The total number of papers under consideration.
PaperLen A vector of length numPapers containing the number of citations each paper makes.

Details

To determine the association between two genes one can use co-citation in the medical literature. This function computes the number of papers that cite only gene 1, only gene 2, both and neither. These are then returned as the entries in a two way table.

Value

A vector of length four, with entries n11, n12, n21 and n22. These correspond to the number of papers that cite both genes, the number that cite only gene 1, the number that cite only gene 2, and the total number of papers minus those counted in n11, n21, n12.

Author(s)

R. Gentleman

See Also

paperLen, twTStats

Examples


  twowayTable("10", "100")
  twowayTable("10", "100", FALSE)


[Package CoCiteStats version 1.0.0 Index]