Home » Topics » Child Health » Rotav Vaccine and nutrition
Re: Rotav Vaccine and nutrition [message #27558 is a reply to message #27557] |
Sun, 03 September 2023 21:48 |
backclac
Messages: 25 Registered: August 2023
|
Member |
|
|
Hello Prof,
I have been able to extract the indicators needed for my project from the API using the following r syntax;
```{r}
#library
> library(devtools)
> library(usethis)
> library(rdhs)
> library(RJSONIO)
> library(tidyverse)
#example
#No education ED_EDUC_W_NED
> json_file<- fromJSON(" https://api.dhsprogram.com/rest/dhs/data?countryIds=AO,BF,BJ ,BU,CD,CF,CG,CI,CM,ET,GA,GH,GM,GN,KE,KM,LB,LS,MD,ML,MR,MW,MZ ,NG,NI,NM,RW,SL,SN,ST,SZ,TD,TG,TZ,UG,ZA,ZM&indicatorIds= ED_EDUC_W_NED")
> json_data1<- lapply(json_file$Data, function(x){unlist(x)})
> APIdata23<-as.data.frame(do.call("rbind",json_data1),stringsAsFactors = FALSE)
> xtabs(as.numeric(Value)~SurveyId,data=APIdata23)
#Selecting specific variables
xt1<-APIdata23 %>%
select(CountryName,SurveyYearLabel,Survey,Value, DenominatorWeighted)
View(xt1)
```
#I then selected and copied the viewed table to Excel
#I then calculate the number of population (N) as
N =(Value/100)*DenominatorWeighted
# I will then import the Excel file into r for complex analysis but I want to be sure if I am on track.
I have also realized that the indicator code CH_DIAT_C_ORZ has some different values for the same survey year due to a change in DenominatorWeighted.
I guess it is appropriate to use the values with the highest DenominatorWeighted
Kindly advice me
Thank you
|
|
|
|
|
Rotav Vaccine and nutrition
By: backclac on Thu, 10 August 2023 22:01
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Tue, 15 August 2023 06:03
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Wed, 16 August 2023 11:13
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Wed, 23 August 2023 16:11
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Thu, 31 August 2023 08:07
|
|
|
Re: Rotav Vaccine and nutrition
By: admin on Thu, 31 August 2023 10:57
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Sun, 03 September 2023 21:39
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Sun, 03 September 2023 21:48
|
|
|
Re: Rotav Vaccine and nutrition
By: Janet-DHS on Thu, 07 September 2023 17:18
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Thu, 07 September 2023 22:13
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Wed, 13 September 2023 15:58
|
|
|
Re: Rotav Vaccine and nutrition
By: Janet-DHS on Fri, 15 September 2023 17:36
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Sat, 16 September 2023 09:12
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Tue, 10 October 2023 22:16
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Wed, 11 October 2023 21:52
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Sat, 14 October 2023 06:25
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Tue, 17 October 2023 21:54
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Mon, 23 October 2023 20:08
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Thu, 14 December 2023 18:30
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Sat, 23 December 2023 01:33
|
|
|
Re: Rotav Vaccine and nutrition
|
|
|
Re: Rotav Vaccine and nutrition
By: backclac on Thu, 04 January 2024 03:27
|
|
|
Re: Rotav Vaccine and nutrition
|
Goto Forum:
Current Time: Sat Nov 30 05:51:08 Coordinated Universal Time 2024
|