stringtovector: Converts a character string representation of a factorial effect into the vector form
Description
Converts a character string representation of a factorial effect in PG(n-1,2) into a binary vector of length n.
Usage
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)
Value
A binary vector of length n.
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.
References
Spencer, N.A., Ranjan, P., and Mendivil, F., (2019), "Isomorphism Check for \(2^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]