Hello,
I would like to get summary statistics (mean, standard deviation etc) for Var1 based on the values of Var2.
My data look like as follow:
ID Var1 Var2
1 10 5
2 20 10
3 70 15
4 100 11
5 95 4
.....
I want to get summary statistics of Var1 separately for the following values of Var2: if "Var2 <5", "if Var2 >=5 and Var2< 10", if "Var2 > 11" etc. This means get summary statistics of Var1 based on the values of Var2.
sum var1 if var2< 5 gives statistics and can be done repeatedly for other conditions, which is very time consuming as I need to do it for many conditions of Var2.
Is there any way to summarize Var1 when above-mentioned conditions met for Var2?
Thanks,
Krishna
I would like to get summary statistics (mean, standard deviation etc) for Var1 based on the values of Var2.
My data look like as follow:
ID Var1 Var2
1 10 5
2 20 10
3 70 15
4 100 11
5 95 4
.....
I want to get summary statistics of Var1 separately for the following values of Var2: if "Var2 <5", "if Var2 >=5 and Var2< 10", if "Var2 > 11" etc. This means get summary statistics of Var1 based on the values of Var2.
sum var1 if var2< 5 gives statistics and can be done repeatedly for other conditions, which is very time consuming as I need to do it for many conditions of Var2.
Is there any way to summarize Var1 when above-mentioned conditions met for Var2?
Thanks,
Krishna
Comment