stringtovector function

Converts a character string representation of a factorial effect into the vector form

Converts a character string representation of a factorial effect into the vector form

Converts a character string representation of a factorial effect in PG(n-1,2) into a binary vector of length n.

stringtovector(string,n)

Arguments

  • string: a character string representation of a factorial effect in PG(n-1,2) (see Details and Examples of checkSpreadEquivalence).

  • n: the number of basic factors, or equivalently, the dimension of PG(n-1,2)

Details

Takes a character string representation of a factorial effect in PG(n-1,2), and returns a binary vector of length n. This can be used in defining a spread or a star. The spread/star should be formatted as a 3-dimensional array with spread[i,j,k]/star[i,j,k] indicating whether or not the ith basic factor is present in the jth effect of the kth flat of spread/star. See Spencer et al. (2019) for details.

Returns

A binary vector of length n.

References

Spencer, N.A., Ranjan, P., and Mendivil, F., (2019), "Isomorphism Check for 2n2^n Factorial Designs with Randomization Restrictions", Journal of Statistical Theory and Practice, 13(60),1-24 [https://doi.org/10.1007/s42519-019-0064-5]

See Also

checkSpreadIsomorphism for checking the isomorphism of balanced spreads.

checkStarIsomorphism for checking the isomorphism of balanced covering stars.

Author(s)

Neil Spencer, Pritam Ranjan, Franklin Mendivil

Examples

## Example : Converts "AC" into a vector representation stringtovector("AC",4) stringtovector("AC",5) stringtovector("CD",6)
  • Maintainer: Pritam Ranjan
  • License: GPL-2
  • Last published: 2020-03-25

Useful links