Dear Statalist,
Across multiple directories and subfolders, I have multiple Excel files that show a group of male and female students arranged vertically.
By generating the "sex" variable, I would like to know how to tag each student based on their unique sex identity. My apology if my question is not very clear.
Newbie here and I really don't know how to start my code.
Here's my data sample:
clear
input str32 A str32 B str32 C str32(D) str4(E) str6 F str32(G)
"" "FORM S5.2" "" "" "" ""
"" "" "" "" "" ""
"" "" "" "" "" ""
"" "School ID" "123456" ""
"" "School Name" "Orchid School"
"" "" "" "" "" "" ""
"No." "LRN" "NAME" "Age" "Grade" "Pass" "ResID"
"" "" "" "" "" "" ""
"" "" "MALE" "" "" "" ""
"1" "1234" "Josh" "4" "5" "PF" "7"
"2" "2235" "Robert" "7" "7" "NF" "7"
"3" "3236" "Arnel" "6" "6" "NF" "6"
"4" "1237" "Brandan" "4" "3" "PF" "4"
"5" "7239" "Royal" ".." ".." ".." ".."
"6" "1243" "Brazil" ".." ".." ".." ".."
"7" "1246" "Bob" "6" "3" "PF" "2"
"" "7" "<=====TOTAL MALE" "" "" ""
"" "" "FEMALE" "" "" "" ""
"1" "7891" "Olivia" "4" "5" "PF" "7"
"2" "7892" "Emma" "7" "7" "NF" "7"
"3" "7893" "Amelita" "6" "6" "NF" "6"
"4" "8971" "Sophia" "4" "3" "PF" "4"
"5" "8973" "Isabella" ".." ".." ".." ".."
"6" "3456" "Rhodora" ".." ".." ".." ".."
"7" "3457" "Lucy" "6" "3" "PF" "2"
"" "7" "<=====TOTAL FEMALE" "" "" "" ""
end
Appreciated any help.
Across multiple directories and subfolders, I have multiple Excel files that show a group of male and female students arranged vertically.
By generating the "sex" variable, I would like to know how to tag each student based on their unique sex identity. My apology if my question is not very clear.
Newbie here and I really don't know how to start my code.
Here's my data sample:
clear
input str32 A str32 B str32 C str32(D) str4(E) str6 F str32(G)
"" "FORM S5.2" "" "" "" ""
"" "" "" "" "" ""
"" "" "" "" "" ""
"" "School ID" "123456" ""
"" "School Name" "Orchid School"
"" "" "" "" "" "" ""
"No." "LRN" "NAME" "Age" "Grade" "Pass" "ResID"
"" "" "" "" "" "" ""
"" "" "MALE" "" "" "" ""
"1" "1234" "Josh" "4" "5" "PF" "7"
"2" "2235" "Robert" "7" "7" "NF" "7"
"3" "3236" "Arnel" "6" "6" "NF" "6"
"4" "1237" "Brandan" "4" "3" "PF" "4"
"5" "7239" "Royal" ".." ".." ".." ".."
"6" "1243" "Brazil" ".." ".." ".." ".."
"7" "1246" "Bob" "6" "3" "PF" "2"
"" "7" "<=====TOTAL MALE" "" "" ""
"" "" "FEMALE" "" "" "" ""
"1" "7891" "Olivia" "4" "5" "PF" "7"
"2" "7892" "Emma" "7" "7" "NF" "7"
"3" "7893" "Amelita" "6" "6" "NF" "6"
"4" "8971" "Sophia" "4" "3" "PF" "4"
"5" "8973" "Isabella" ".." ".." ".." ".."
"6" "3456" "Rhodora" ".." ".." ".." ".."
"7" "3457" "Lucy" "6" "3" "PF" "2"
"" "7" "<=====TOTAL FEMALE" "" "" "" ""
end
Appreciated any help.
Comment