sample_group_sim: Draw sample of group similarities of groups of given size

Description Usage Arguments Value See Also

View source: R/group-sim.R

Description

Draw sample of group similarities of groups of given size

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sample_group_sim(pop_sim, ...)

## S3 method for class 'integer'
sample_group_sim(pop_sim, ...)

## S3 method for class 'numeric'
sample_group_sim(pop_sim, ...)

## S3 method for class 'matrix'
sample_group_sim(pop_sim, ...)

## S3 method for class 'sim_index'
sample_group_sim(pop_sim, ...)

## Default S3 method:
sample_group_sim(
  pop_sim,
  type,
  group_size,
  group_sim = "average",
  sample_size = 10000,
  ...
)

Arguments

pop_sim

An object representing the similarities of an indexed population of objects.

...

Other arguments to be passed to sample_group_sim.

type

Either "matrix", "sim_index" or "numeric" - the type of the pop_sim object.

group_size

Integer giving the number of members of a group.

group_sim

String Either "average" or "min", determining how to calculate the similarity of a group of term sets over all pairwise combinations of group members

sample_size

Number of samples to draw.

Value

Numeric vector of random group similarities.

See Also

get_sim get_sim_p


ontologySimilarity documentation built on Feb. 10, 2021, 5:08 p.m.