For installation and configuration, see here.

1.1 Desiging experiments

We can make an experiment object either by reading an experiment from a GAML file with the load_experiment() funtion or by building it from scratch with the experiment() constructor.

1.1.2 Building an experiment from scratch

Alternatively, an experiment can be built from scratch with the experiment constructor:

Which gives the same thing:

Note that if you enter values of inequal lengths, it will automatically complete:

Which gives:

Note finally, that we can make smart use of the expand.grid() function of the base package to efficiently generate a complete experimental design:

Which gives:

We’ll see more about that in the next sections.

1.2 Manipulating experiments

As mentioned above, since experiment objects are data frames, all the data frame methods can be used to manipulate them, such as nrow() to know the number of simulations in an experiment:

1.2.1 Replicating experiments

From the following experiment

We can replicate:

exp5 <- repl(exp1, 10)

Which gives:

On which we could use different seeds for each simulation:

Which gives:

1.2.4 tmax and seed

As seen above, seed can be extracted and changed with regular data frame methods:

Same for tmax:

If you want to stop observing the variable R and observe the variable I every 2 steps, you’d do:

Which gives: