max.models: max.models

Description Usage Arguments Details Value Author(s)

Description

Total possible models that may be formed of n.use out of snps SNPs

Usage

1
2
  max.models(snps = character(0), n.use,
    n.snps = length(snps), groups = list())

Arguments

snps

Character vector of snp names covering all snps in the region. Needed if you want to supply groups

n.use

Number of SNPs in model

n.snps

Number of SNPs in region, length(snps). Either snps or n.snps must be specified.

groups

optional list of character vectors, each giving groups of SNPs in LD, so that only one of any group is included in a model

Details

This is a choose(snps, n.use) in the simple case, but subject to the groups list.Total possible models

Value

The number of possible models

Author(s)

Chris Wallace


chr1swallace/snpBMA documentation built on May 13, 2019, 6:19 p.m.