Displaying 1 result from an estimated 1 matches for "dydt".
Did you mean:
dsdt
2012 Jan 08
0
Adding a migration element to a deterministic spatial model
...t have not had any success. I need help figuring out
why m#[i,j] consistently returns a 0 value (or at least appears to)
despite the code instructing R to return different values under set
circumstances.
thanks for any help you are able to give,
yours sincerely,
Aimee
with(as.list(c(y,p)),
{
dydt <- rep(0,NP*16)
# Initialize m1,m2,m3
m1 <- matrix(0,NP,NP)
m2 <- matrix(0,NP,NP)
m3 <- matrix(0,NP,NP)
# Only nearest neighbors have nonzero travel rates between each other
for (i in 1:NP)
{
for (j in 1:NP)
{
if ((i%%sqrt(NP)) == 0 & i!=j)
{...