Message-ID: <3406DCA3-A770-4BE9-A9FD-0695CA50C0E1@me.com>
Date: 2012-10-21T23:05:51Z
From: Simeon Lisovski
Subject: Parameter Matrix
Hallo,
I would like to run a model (differential equations)
with a whole bunch of parameter combinations.
I think the best way of doing this is to put the model
function into a loop and set a matrix with the parameters:
Each row will represent the parameters for one loop.
I know how to compile such a matrix (via another loop,
or by using rbind etc.). However I hope you guys may have
a much better solution compiling such a matrix very quick
and straightforward.
Example (very simple):
a <- 1:2
b <- 5
c <- seq(1,10,5)
The Matrix should be:
a b c
1 5 1
1 5 6
2 5 1
2 5 6
Any ideas?
Cheers,
Simeon