powered by
LA_OofAC returns a n by k D-optimal order-of-addition design matrix generated by lioness algorithm (LA)
LA_OofAC
n
k
LA_OofAC(n, k, m = 100L, N = 5000L)factorialC(x)modC(a, b)rOofAC(n, k)PWOC(X)TC(X)MOMC(X)
factorialC(x)
modC(a, b)
rOofAC(n, k)
PWOC(X)
TC(X)
MOMC(X)
If all inputs are logical, then the output will be a n by k D-optimal order-of-addition design.
A positive integer, which stands for the number of rows (or run size). Note that the maximum of n cannot be greater than k factorial.
A positive integer, which stands for the number of columns (or factor size).
A positive integer that stands for the number of starting design candidates. The default is set to be 100.
A positive integer that stands for the maximum number of iterations. The default is set to be 5000. A larger value of N may result a high CPU time.
N
is a positive integer.
A matrix object. In general, X stands for the design matrix.
X
#generate a D-optimal full OofA with 4 factors. try=LA_OofAC(n=24,k=4,m=10,N=50) try #Another example #generate a D-optimal 11-run OofA with 4 factors. try2=LA_OofAC(n=11,k=4,m=10,N=50) try2
Run the code above in your browser using DataLab