Hi all,
I have a panel data with 5000 observations and 117 variables. I will only use 2 variables: investment (ivt) and distance from cut-off (dis).
I want to:
1. Filter only the cells with -0.5 < = dis <= 0.5
2. Group them according to their values, with 0.1 in difference between them (Group 1 are cells with 0<=dis<0.1; Group 2 are cells with 0.1<=dis<0.2; and so on). With that in mind, I have 10 groups in total.
3. Calculate the mean of investment (ivt) for each of the group
4. Draw a bar chart comparing the mean of investment of these 10 group.
Is that the correct way to do to compare the level of investment amongst these group?
I use command egen for the first step but it did not really work. Could anyone shed some light on how should I command these? Thank you very much!
I have a panel data with 5000 observations and 117 variables. I will only use 2 variables: investment (ivt) and distance from cut-off (dis).
I want to:
1. Filter only the cells with -0.5 < = dis <= 0.5
2. Group them according to their values, with 0.1 in difference between them (Group 1 are cells with 0<=dis<0.1; Group 2 are cells with 0.1<=dis<0.2; and so on). With that in mind, I have 10 groups in total.
3. Calculate the mean of investment (ivt) for each of the group
4. Draw a bar chart comparing the mean of investment of these 10 group.
Is that the correct way to do to compare the level of investment amongst these group?
I use command egen for the first step but it did not really work. Could anyone shed some light on how should I command these? Thank you very much!
Comment