i have this data corresponding to many participants, and were collected data from them in different locations.
id
South
North
east
west
1
2
4
12
9
2
3
.
11
10
3
2
4
12
10
4
6
4
13
12
now i need to obtain the mean ( or average) of all of them and put it into columns, as well as standard deviation.
Repair that both mean and standard deviation are considering all observations, in sql i don't want to divide the sum by the number of the observations, is not fashion LOL.
i would like to obtain this:
id
South
North
mean_south_north
SD_south_north
east
west
mean_east_west
SD_east_west
1
2
4
3,57142857142857
1,39727626201154
12
9
11,125
1,35620268186054
2
3
.
3,57142857142857
1,39727626201154
11
10
11,125
1,35620268186054
3
2
4
3,57142857142857
1,39727626201154
12
10
11,125
1,35620268186054
4
6
4
3,57142857142857
1,39727626201154
13
12
11,125
1,35620268186054
the first mean comes from the observations obtained in south and north, and the second, on east and west. as well their respective standard deviations.
Thanks in advance
... View more