Description Usage Arguments Value Examples
View source: R/generate_integ_pts.R
Preprocessing to link strategies and designs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
n.s |
scalar or vector. If scalar, total number of strategies (to be divided equally among players), otherwise number of strategies per player. |
d |
number of variables |
nobj |
number of objectives (or players) |
x.to.obj |
vector allocating variables to objectives. If not provided, default is |
gridtype |
either " |
equilibrium |
either " |
lb, ub |
vectors specifying the bounds of the design space, by default |
include.obs |
Boolean, if TRUE observations given in |
model |
optional list of |
init_set |
large grid to subsample from |
include_set |
grid to be included in the larger one generated |
seed |
random seed used by |
A list containing two matrices, integ.pts
the design of experiments and expanded.indices
the corresponding indices (for NE
), and the vector n.s
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##############################################
### 4 variables, 2 players, no filter
##############################################
# Create a 11x8 lattice based on 2 LHS designs
n.s <- c(11,8)
gridtype = "lhs"
# 4D space is split in 2
x.to.obj <- c(1,1,2,2)
integcontrol <- generate_integ_pts(n.s=n.s, d=4, nobj=2, x.to.obj = x.to.obj, gridtype=gridtype)
pairs(integcontrol$integ.pts)
# Create a simple 11x11 grid
integcontrol <- generate_integ_pts(n.s=11^2, d=2, nobj=2, gridtype="cartesian")
pairs(integcontrol$integ.pts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.