search for: contagieux

Displaying 2 results from an estimated 2 matches for "contagieux".

2012 Nov 24
3
Help!!!!!
...SPAIN 4 14363 23 2009-04-29 United Kingdom 5 14363 A data with a date in character format,i wich reprent a country,Symptomes wich is a number of subjects having a disease,t the date convert in numeric. I want to create two other variables (for example INCUBATION and CONTAGIEUX) Incubation[ i ] add values for symptomes for the two previous days (for t<=t-1) CONTAGIEUX [ i ] add values for symptomes for the 7 next days (for t>=t+6). I want the two variables INCUBATION and CONTAGIEUX to be cumulative for next and previous date. For example for date i...
2012 Dec 04
6
Help for a function
Hello all, I need a help. I am modeling a disease and a create a R function like that: Lambda<-function (x,date1,r,h,a){ ndate1 <- as.Date(date1, "%d/%m/%Y") t1 <- as.numeric(ndate1) x[order(x$i),] t <-x[,"t"] i <-x[,"i"] CONTAGIEUX <-x[,"CONTAGIEUX"] while ( t1 < min(t) ){ for (i in 1:length(i) ){ {for (j in 1:CONTAGIEUX[length(CONTAGIEUX)]){ res1[j] <-(a*h) res2 <-sum( res1[j]) } } lambda[i] <- r*res2 } } x<-data.frame(x,lambda) x } on such data : DATE i Symp...