search for: r_d

Displaying 1 result from an estimated 1 matches for "r_d".

Did you mean: _d
2013 Mar 02
3
if value is in vector, perform this function
...feed_days = seq(1,60,by=3.5) Daphnia <- function(t,x,params){ C_D = x[2]; C_A = 0; for(t %in% feed_days){ if t == TRUE { C_A = 1.5 } else{ C_A = 0 }} gamma = params[1]; m_D = params[2]; K_q = params[3]; q_max = params[4]; M_D = m_D * C_D I_A = (C_D * q_max * C_A) / (K_q + C_A) r_D = gamma * I_A return( list(c( - I_A, r_D - M_D ))) } library(deSolve) results <- ode(init, t, Daphnia, params, method = "lsoda") Let me know if there's any other info that would be helpful and thanks very much for your help! [[alternative HTML version deleted]]