Re: [R] Help on function please

2012-11-27 Thread Jean V Adams
Andras, What do you want your code to do? Give us a little explanation with your code. When I try to run your code, I get Error: could not find function "genoud". Either supply the code for the functions included in your code, or tell us what packages we need to run it. Jean Andras

[R] Help on function please

2012-11-26 Thread Andras Farkas
Dear All,   I could use a bit of help here, this function is hard to figure out (for me at least) I have the following so far:   PKindex<-data.frame(Subject=c(1),time=c(1,2,3,4,6,10,12),conc=c(32,28,25,22,18,14,11)) Dose<-200 Tinf <-0.5   defun<- function(time, y, parms) {  dCpdt <- -parms["kel"]