magic.NP2: Create a Non-Power of 2 (NP2) MAGIC design.

View source: R/magic_NP2.R

magic.NP2R Documentation

Create a Non-Power of 2 (NP2) MAGIC design.

Description

This function produces m (or m-set) founder combinations and crosses for number of founders that is not a power of 2 (e.g. 3,5,6,7,9,...). For balanced=TRUE, n is restricted to 3, 5-7, 9-15. For balanced=FALSE, n is limited to 3, 5-7, 9-15, 17-31, 33-63, 65-127. Please refer to the section on NP2 MAGIC design in the vignette for more information on the accepted m values for each n.

Usage

magic.NP2(n, m, balanced = FALSE, inbred = TRUE)

Arguments

n

number of founders.

m

number of funnel sets (balanced=TRUE) or funnels (balanced=FALSE).

balanced

logical indicator of whether balanced partial design is chosen or ignored.

inbred

logical indicator of whether the founders are inbred.

Value

an object of "cross.info" class, i.e. a list of founder combinations (fcomb) and crossing plans (xplan).

Examples


mpop <- magic.NP2(n=5, m=2, balanced=TRUE)



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