Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigi112 authored Sep 14, 2021
1 parent 2984b89 commit 2de204d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_cleaning.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ onset <- data.frame(state=onset.2020$state,previous=onset.whole$mean,now=onset.2
onset_FL <- data.frame(state=onset.2020$state[-which(onset.2020$state=="FL")],previous=onset.whole$mean[-which(onset.whole$state=="FL")]-onset.whole$mean[which(onset.whole$state=="FL")],now=onset.2020$onset[-which(onset.2020$state=="FL")]-onset.2020$onset[which(onset.2020$state=="FL")])
y <- log(onset_FL$now)
y <- onset_FL$now
saveRDS(y,"D:/re-emergent RSV timing/sample_requiredata/y.rds")
```

Expand All @@ -30,7 +30,7 @@ x_1 <- rep(1,nrow(onset_FL))
x_2 <- as.numeric(scale(pd_hz$`Population Density 2020 Census`))
x_3 <- as.numeric(scale(pd_hz$familysize))
x_4 <- as.numeric(scale(Index$Index))
x_5 <- log(onset_FL$previous)
x_5 <- onset_FL$previous
x <- matrix(data=c(x_1,x_2,x_3,x_4,x_5),nrow = 47,ncol = 5)
saveRDS(x,"D:/re-emergent RSV timing/sample_requiredata/x.rds")
Expand Down

0 comments on commit 2de204d

Please sign in to comment.