childid session id
1 UP/GBN/RU/3I/KHP/KHZ/CLC/1
2 UP/GBN/RU/3I/KHP/KHZ/CLC/1
3 UP/GBN/RU/3I/KHP/KHZ/CLC/1
4 UP/GBN/RU/3I/KHP/KHZ/CLC/1
5 UP/GBN/RU/3I/KHP/KHZ/CLC/1
1 UP/GBN/RU/3I/KSN/KNB/CLC/3
2 UP/GBN/RU/3I/KSN/KNB/CLC/3
3 UP/GBN/RU/3I/KSN/KNB/CLC/3
In case total number of rows should be same for both the sessions ids viz, UP/GBN/RU/3I/KHP/KHZ/CLC/1 and UP/GBN/RU/3I/KSN/KNB/CLC/3, lets say it should be 10. For first session id, 5 students are present and 10-5=5 are absent and I would to include five more rows with the same session id and blank childids.
Similarly, for second session id (UP/GBN/RU/3I/KSN/KNB/CLC/3), 3 are present and 10-3 =7 are absent and I want to include 7 more rows with the second session id and blank child ids.
What is the stata command for that, Please help?
1 UP/GBN/RU/3I/KHP/KHZ/CLC/1
2 UP/GBN/RU/3I/KHP/KHZ/CLC/1
3 UP/GBN/RU/3I/KHP/KHZ/CLC/1
4 UP/GBN/RU/3I/KHP/KHZ/CLC/1
5 UP/GBN/RU/3I/KHP/KHZ/CLC/1
1 UP/GBN/RU/3I/KSN/KNB/CLC/3
2 UP/GBN/RU/3I/KSN/KNB/CLC/3
3 UP/GBN/RU/3I/KSN/KNB/CLC/3
In case total number of rows should be same for both the sessions ids viz, UP/GBN/RU/3I/KHP/KHZ/CLC/1 and UP/GBN/RU/3I/KSN/KNB/CLC/3, lets say it should be 10. For first session id, 5 students are present and 10-5=5 are absent and I would to include five more rows with the same session id and blank childids.
Similarly, for second session id (UP/GBN/RU/3I/KSN/KNB/CLC/3), 3 are present and 10-3 =7 are absent and I want to include 7 more rows with the second session id and blank child ids.
What is the stata command for that, Please help?
Comment