Code Monkey home page Code Monkey logo

Comments (7)

wcota avatar wcota commented on May 26, 2024

Hi! I have been following a similar approach with Python to read the CSV files and process the vaccination data since July 2021, but only today I am publicly releasing the data (but it was used by collaborators and other research groups).
There are many problems in defining, for example, if we consider a municipality following the place of residence or application of the dose. The main problem is that the field "residence" comes from the internal SUS registration data, and many people (including me :) ) do not update it when moving to another city.
Tomorrow the first automatic update will happen and the data will be released. If you have time, you can compare it with yours. I have no idea when I will have time to document and explain what I do, but I hope to do it soon.

from covid19br.

wcota avatar wcota commented on May 26, 2024

162d64a

from covid19br.

eguidotti avatar eguidotti commented on May 26, 2024

Hi @wcota, that's great! I would be very thankful if you can take over the maintainance of this.
Below you can find some R code for a quick comparison. I sample checked a few IBGE codes.
The code computes the (cumulated number of) people with at least one vaccine dose from your repo and mine. There are indeed some differences, but more or less the trends look similar. Still, we need to compare people fully vaccinated and total number of doses. And for more IBGE of course. Hope this is a good starting point!

library(data.table)

read.gz <- function(url){
  file <- paste0(tempfile(), ".gz")
  download.file(url, file)
  fread(file)
}

u1 <- "https://github.com/wcota/covid19br/blob/master/vaccination/processed_AC.csv.gz?raw=true"
x1 <- read.gz(u1)

u2 <- "https://github.com/covid19datahub/covid19br/blob/main/data.csv.gz?raw=true"
x2 <- read.gz(u2)

ID.IBGE <- 1200336

a <- setkey(x1[x1$ibgeID==ID.IBGE], date)
a <- a[dose==1, .(PeopleVaccinated = sum(count)), by = date]
a$PeopleVaccinated <- cumsum(a$PeopleVaccinated)
plot(a$date, a$PeopleVaccinated, type = "l")

b <- x2[x2$IBGE==ID.IBGE]
lines(b$Date, b$PeopleVaccinated, col = 2)

Rplot01

from covid19br.

wcota avatar wcota commented on May 26, 2024

Hi! I forgot to mention, but the municipality data are now available at https://github.com/wcota/covid19br-vac

from covid19br.

eguidotti avatar eguidotti commented on May 26, 2024

Hi! Great work! I'm integrating your data and redirecting users from my repo to yours.

One question: I see that the column dose has a value of zero in correspondence of the vaccine "Johnson&Johnson". Am I correct to assume that:

  • dose=0 corresponds to people fully vaccinated with one single shot?
  • dose=1 is the first dose of a two-doses vaccination cicle?
  • dose=2 is the second dose of a two-doses vaccination cicle?
  • dose=3 is a booster dose?

Many thanks!

from covid19br.

wcota avatar wcota commented on May 26, 2024

Yes, that's correct @eguidotti.

from covid19br.

eguidotti avatar eguidotti commented on May 26, 2024

Data integrated! They should be available in the next 24h at https://covid19datahub.io
Thanks a lot!

from covid19br.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.