dear users,
I'm working on a dataset in panel format: id is the individual, time is the year. I need to describe some characterist of the dataset looking at the numbers of individuals: that is considering the frequency tables in which numbers of individuals are counted and not the number of individual-time.
For instance:
id time var1
1 2000 100
1 2001 200
1 2002 300
2 2001 200
2 2002 55
3 2000 150
3 2001 60
3 2002 70
3 2003 80
for example : tab time
i would that it coumes out:
2000 2
2001 3
2002 3
2003 1
...
then how can i obtain the mean for the var1 ?
thank you for any help!!
elena
I'm working on a dataset in panel format: id is the individual, time is the year. I need to describe some characterist of the dataset looking at the numbers of individuals: that is considering the frequency tables in which numbers of individuals are counted and not the number of individual-time.
For instance:
id time var1
1 2000 100
1 2001 200
1 2002 300
2 2001 200
2 2002 55
3 2000 150
3 2001 60
3 2002 70
3 2003 80
for example : tab time
i would that it coumes out:
2000 2
2001 3
2002 3
2003 1
...
then how can i obtain the mean for the var1 ?
thank you for any help!!
elena
Comment