GLP | R Documentation |
GLP
returns a n
by k
design matrix generated by good lattice point (GLP)
GLP(n, k, h = sample(seq(from = 1, to = (n - 1)), k))
n |
A positive integer, which stands for the number of rows (or run size). |
k |
A positive integer, which stands for the number of columns (or factor size). |
h |
A vector whose length is |
If all inputs are logical, then the output will be a n
by k
GLP design matrix.
Korobov, A.N. (1959) The approximate computation of multiple integrals. Dokl. Akad. Nauk SSSR, 124, 1207-1210.
#generate a 5 by 3 GLP design with the default setting
try=GLP(n=5,k=3)
try
#Another example
#generate a 8 by 4 GLP design with given h vector
try2=GLP(n=8,k=4,h=c(1,3,5,7))
try2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.