simNull: Simulate OTU table with null group-level effect for...

Description Usage Arguments Details Value See Also Examples

Description

Within-group distances simulated from OTU number and depth of subsampling (rarefying); no group-level differences.

Usage

1
2
simNull(group_size_vector = c(100, 100, 100), otu_number = 1000,
  sequence_depth = 1, rare_depth = 0.5)

Arguments

group_size_vector

numeric vector representing subjects per exposure/intervention group

otu_number

number of simulated OTUs

sequence_depth

number of sequence counts per OTU bin

rare_depth

proportion of sequence counts to retain after subsampling

Details

For weighted analysis, specify a sequence depth greater than 1; for unweighted analyses, sequence depth is 1 (default).

Value

two-dimensional matrix OTU table, with row and column names to suit downstream analysis

See Also

simStudy, simPower

Examples

1
simNull(c(16,16,16),100,10,0.8)

smvargas/PERMANOVA documentation built on May 20, 2019, 12:37 p.m.