| Home » Topics » General » Weithted analysis in R Goto Forum:
	| 
		
			| Re: Weithted analysis in R [message #29814 is a reply to message #29807] | Thu, 08 August 2024 09:29   |  
			| 
				
				
					|  Mahir Messages: 12
 Registered: September 2023
 | Member |  |  |  
	| Dear DHS team, 
 Thank you for your response.
 
 In my case, I am using DHS data from eight countires, Benin 2017-18, Cameroon 2018, Ivory Coast 2021, Ghana 2022, Liberia 2018-19, Kenya 2022, Nigeria 2021 and Uganda 2016. I am interested in the IYCF indicators from KR file for children aged 0-23 months.From the nutrition data I have created a diet index, I want to look at the association of diet index with wealth index, mother's education, place od residence etc. I want to do this using the weighted data.  I create a sub dataset from the KR file that contains only children aged 0-23 months. As I have already mentioned, when I use scaled weight, I get a talbe with total population of Benin. Should I only use total population of children aged 0-23 months to scale the weight ? In case of Benin, for example, there are total of 3937 children aged 0-23 months , when i use the weights togenerate a table, the table shows 2933 children (not the scaled weight, original weight variable). This should not be the case. Do you have any advise for this?
 
 Secondly, I would also like to create a new population level weight by denormalzing the weight for the pooled data of all eight countires. Just to make camparasions between countires. Can you share tell me how I can do this? I am using R for data analysis. I can figure out the code if you can could just explain me how to conceptually do this. But if you can share the R code that would be also great. :)
 
 Best
 Mahir
 |  
	|  |  | 
 
 Current Time: Fri Oct 31 14:01:31 Coordinated Universal Time 2025 |