magic.balanced: Check if a MAGIC design is balanced.

View source: R/magic_balanced.R

magic.balancedR Documentation

Check if a MAGIC design is balanced.

Description

This function takes a matrix of founder combinations and determines if the design is balanced or not. The matrix rows are funnels and columns are founders.

Usage

magic.balanced(fmat, verbose = FALSE)

Arguments

fmat

a matrix of founder combinations.

verbose

a logical indicator of whether verbose output is desired.

Value

a logical indicator of whether the MAGIC design is balanced or not, and also a table of all founder pairings if verbose=TRUE.

Examples


mpop <- magic.partial(n=8, m=1, balanced=TRUE)
magic.balanced(mpop$fcomb[[3]])



cjyang-sruc/magicdesign documentation built on March 19, 2022, 9:34 a.m.