Hello again,
I'm getting deeper and deeper with Stata/Statistics and love it more and more. :-)
I come from the classical programming area like c++/java/python and know how to solve problems with lists and loops, but Stata has some very useful command contructions doing complex works in just one command. That is what I am searching for here. So now to the problem:
I got for example the following data with just few rows for showing what I mean:
Now I want to calculate the mean value by GroupID and set all to a new column like it will be shown in the next table:
Is this possible in with one nice Stata command and also with other results than mean?
In general...I try to use Stata for data manipulation and data analysis of chemical engineering process optimization.
Greetings and thx for your help
Christian
I'm getting deeper and deeper with Stata/Statistics and love it more and more. :-)
I come from the classical programming area like c++/java/python and know how to solve problems with lists and loops, but Stata has some very useful command contructions doing complex works in just one command. That is what I am searching for here. So now to the problem:
I got for example the following data with just few rows for showing what I mean:
Nr | GroupID | Value |
1 | 1 | 5 |
2 | 1 | 3 |
3 | 2 | 5 |
4 | 2 | 11 |
Nr | GroupID | Value | Mean |
1 | 1 | 5 | 4 |
2 | 1 | 3 | 4 |
3 | 2 | 5 | 8 |
4 | 2 | 11 | 8 |
In general...I try to use Stata for data manipulation and data analysis of chemical engineering process optimization.
Greetings and thx for your help
Christian
Comment