pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confidence interval is mathematically equivalent to hypothesis test


From: John Darrington
Subject: Re: Confidence interval is mathematically equivalent to hypothesis test
Date: Sun, 14 Oct 2018 08:46:02 +0200
User-agent: NeoMutt/20170113 (1.7.2)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]