Displaying 1 result from an estimated 1 matches for "num_days".
Did you mean:
num_aps
2009 Dec 06
2
Error in eval(expr, envir, enclos) : object 'N' not found
...ect 'N' anywhere in the script. I made an
identical version of models states, parameters, and everything just by
adding 2 after each one, and I'm still getting this error.
Thanks,
-Hans
::CODE::
require(odesolve);
###Params for running script ##
iniT=1E3; iniN=10; iniM=0; iniC=1E3;
num_days = 30; interval_size = .1; OF_prcnt = .10;
model <- function(t, state, pars)
{
with (as.list(c(state, pars)), {
dT=(a*T-a*T*b*T) - (c1*N*T) - (Kt*M*T)
dN=a1 - (f*N) + g * (T/(h+T)) * N - (p * N * T) - (Kn * M * N)
dC=a2 - (beta * C) - (Kc * M * C)
dM= -(gamma) * M + Vm
return(list(...