stringtovector {IsoCheck} | R Documentation |
Converts a character string representation of a factorial effect in PG(n-1,2)
into a binary vector of length n.
stringtovector(string,n)
string |
a character string representation of a factorial effect in |
n |
the number of basic factors, or equivalently, the dimension of |
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 i
th basic factor is present in the j
th effect of the k
th flat of spread
/star
. See Spencer et al. (2019) for details.
A binary vector of length n.
Neil Spencer, Pritam Ranjan, Franklin Mendivil
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]
checkSpreadIsomorphism
for checking the isomorphism of balanced spreads.
checkStarIsomorphism
for checking the isomorphism of balanced covering stars.
## Example : Converts "AC" into a vector representation
stringtovector("AC",4)
stringtovector("AC",5)
stringtovector("CD",6)