Dear Statlists,

I created a table, where I split up my variables into 4 quantiles. The values in the table are the means of the values for each quantiles.


Array


Now I am trying to add a new a new column to my table, where I subtract the value of the first quantile from the value of the fourth quantile. In addition I want to run a t-test over the result.
Do you know how it is possbile to calculate this in stata?

I really appreciate any kind of help.
Thank you in advance.

Best Regards