Displaying 3 results from an estimated 3 matches for "contag".
Did you mean:
montag
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...
2008 Sep 23
1
Create groups from data to compute lm?
...ri_ex sc_ex Sc_ex_pri
sc_ec_p1234 PD LPI ED LSI
1 3 25 1 1 3251 251 1 1 26 125
1125 1125 21.6565 62.6602 82.0769 15.8792
2 3 25 1 1 3251 251 1 1 26 125
1125 1125 19.3076 27.6264 111.2014 20.7889
PAFRAC PROX_MN ENN_MN CONTAG pfor purban
1 1.440 319.6529 114.8314 62.0965 69.4891 12.3124
2 1.467 396.1949 105.3712 52.9186 38.1179 15.1906
I tried using:
all.lm <- (pfor~PD, data = all, subset=(ex_bin==250))
but this resulted in a bogus analysis filed with 'NAs'. I then tried to use
getGroups.
> all.group...
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...