[R] optimisation - Error in checkFunc(Func2, times, y, rho) : The number of derivatives returned by func() (22) must equal the length of the initial conditions vector (2)

2017-02-21 Thread Malgorzata Wieteska via R-help
Hello, I get an error message:Error in checkFunc(Func2, times, y, rho) :   The number of derivatives returned by func() (22) must equal the length of the initial conditions vector (2) I try to optimise system of differential equations with 2 extra variables derived from the data.frame. I didn't

[R] optimisation of the system of differential equations

2017-02-20 Thread Malgorzata Wieteska via R-help
I try to do optimisation of the system of the differential equations. I've managed to make my exemplary code working, however after changing equations on the exact model and data on the real one, I get an error messages and code doesn't work. I have a partial data for L (concentrations were

[R] non-linear optimisation ODE models

2017-02-15 Thread Malgorzata Wieteska via R-help
Hello, I'm new to R, so sorry for this question. I found a piece of code on stack overflow community, title: r-parameter and initial conditions fitting ODE models with nls.lm. I've tried to implement a change suggested, but I get an error: Error in unname(myparms[4], B = 0, C = 0) :   unused

[R] minpack package in R version 3.3.2

2017-02-14 Thread Malgorzata Wieteska via R-help
Hello, I'm new to R. I found very useful for me code for parameter estimation. Unfortunately, while trying to install "minpack" I get info, that this package is not available for version 3.3.2. I'm using Windows 10. Does anyone know how to overcome this and maybe a hint on which version of R it