[R] Estimate parameters differential equations system

2018-08-29 Thread Fanny Gallais
Dear R users, I am working on a simple mathematical model made of two ordinary differential equations: dx/dt=-mx-d1(x-c) dy/dt=mx-d2y I would like to fit this model to my data and estimate the corresponding parameters. The thing is I only have observed data for y, x is unknown. Is it poss

[R] Differential equations

2017-02-08 Thread Fanny Gallais
Hi, I'm working on a system of 2 differential equations. My initial condition (t=0) is c(100,0) and i'm using lsoda function (from package deSolve) to solve it. My system reprensents the evoution of drug concentration in two compartments throug time. Problem is I would like to model a repeated dru