On Sat, Oct 13, 2018 at 04:04:41PM +0200, Werner LEMBERG wrote: > SORT CASES BY var1 [var2]. > SPLIT FILE LAYERED BY?? var1 [var2]. > > T-TEST /TESTVAL=0 > ?????? /VARIABLES= dependent variables ???? /MISSING=ANALYSIS > ?????? /CRITERIA=CI(insert your confidence level here, e.g. 0.95). Very nice, thanks! > Then you can use the means and the bounds of the confidence > intervals to draw your own graphs outside PSPP. How do I get the results of the T-TEST command shown on the console into the current dataset so that I can export them to a CSV file? If I understand the use case properly, I think that you can do what you want with with an aggregate followed by a few simple compute commands:
AGGREGATE OUTFILE * MODE ADDVARIABLES /BREAK=g /Mean = mean(V) /sd = sd(v) /n = n(v) . compute ci_upper=mean + sd/sqrt(n). compute ci_lower=mean - sd/sqrt(n). list. You might want to check out the continuous distribution functions too. See section 7.7.10 of the user manual. -- Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. _______________________________________________ Pspp-users mailing list Pspp-users@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-users