How to calculate Household Food Insecurity Access Scale Calculation in Stata

How to calculate Household Food Insecurity Access Scale Calculation in Stata
#HFIAS
HFIAS pdf: www.fantaproject.org/monitori...
Data Source: github.com/ahshanulhaque/MyDa...
*-----------
use "D:\abc\hfiasmdd.dta", clear
for var Q1a Q2a Q3a Q4a Q5a Q6a Q7a Q8a Q9a: replace X=0 if X==.
gen HFIA = 1 if ((Q1a==0 | Q1a==1) & Q2==0 & Q3==0 & Q4==0 & Q5==0 & Q6==0& Q7==0 & Q8==0 & Q9==0)
replace HFIA = 2 if ((Q1a==2 | Q1a==3 | Q2a==1 | Q2a==2 | Q2a==3 | Q3a==1 | Q4a==1)& Q5==0 & Q6==0 & Q7==0 & Q8==0 & Q9==0)
replace HFIA = 3 if ((Q3a==2 | Q3a==3 | Q4a==2 | Q4a==3 | Q5a==1 | Q5a==2 | Q6a==1 | Q6a==2) & Q7==0 & Q8==0 & Q9==0)
replace HFIA = 4 if (Q5a==3 | Q6a==3 | Q7a==1 | Q7a==2 | Q7a==3 | Q8a==1 | Q8a==2 |Q8a==3 | Q9a==1 | Q9a==2 | Q9a==3)
la de HFIA 1 "Secure" 2 "Mildly Food Insecure" 3 "=Moderately Food Insecure" 4 "Severely Food Insecure ", replace
la val HFIA HFIA
la var HFIA "Household food insecurity"
*-----
Are you passionate about data science, bio-statistics, and epidemiology? Dive into our channel, where we break down complex concepts and empower you with the knowledge to excel in regression analysis and beyond. Learn the latest techniques, explore real-world applications, and stay ahead in your field. Whether you're a beginner or an expert, our engaging content will elevate your understanding and skills. Subscribe now and transform your career with the power of data!
The main topics of this channel are given below:
Sample size calculation
Data management in STATA and SPSS
Advance data analysis
Epidemiology

Пікірлер: 2

  • @mujahidislam-d5z
    @mujahidislam-d5z21 күн бұрын

    ভাই খুজতে খুজতে দেখছি fies নিয়ে আপনি ভিডিও বানিয়েছেন। কয়েকদিন আগে বিবিএস থেকে ডেটাসেট পেলাম।

  • @biostatbd

    @biostatbd

    21 күн бұрын

    This is example dataset.