I think John is saying that in SPSS/PSPP you need to use a statistical
function to generate statistical results like a CI. For example, T-TEST
will produce a 95% CI for the mean difference in independent-samples
t-tests. Other routines may provide other confidence intervals.
But maybe you want to use compute to create a variable for each case:
compute LB = x - 1.96 * 10.1/sqrt(31).
compute UB = x + 1.96 * 10.1/sqrt(31).
This creates variables LB and UB for all cases in your data file and you
need to supply Z, mean, SD, and n.
Connecting that to your query about AGGREGATE, which takes groups of
cases (defined by unique values on BREAK) and creates summary stats, you
could use AGGREGATE to create mean, SD and n in the above equation and
then use those compute statements to calculate the bounds of the CI for
the groups of cases. So, you would have to do two steps. First an
AGGREGATE command that creates mean, SD and n, followed by the two
You would end up with a dataset containing the mean, sd, n, LB, and UB
for each group (defined by a unique value of BREAK) in the original dataset.
Hopefully you only have one variable (or a very few) in the data that
you want this on, because you have to create mean, SD and n for each
Post by Mark Hancock
I unfortunately don't know enough about PSPP syntax to suggest how to
do this, but a CI is *not*Â always associated with a hypothesis and can
be calculated from just a mean and SD (and a cumulative distribution
function, which is typically the normal one). Typically the formula is
meanÂ Â± z(SD/sqrt(n)), where z is from the CDF.
On Fri, Oct 12, 2018 at 6:29 AM John Darrington
The confidence interval is a concept associated with a hypothesis.
If it's the confidence interval on the test for a mean value, typically you
would get that by using a T-Test.
Â Â Â Folks,
Â Â Â I would like to get a 95% confidence interval so that I could
Â Â Â in AGGREGATE, e.g.,
Â Â Â Â AGGREGATE OUTFILE * MODE ADDVARIABLES
Â Â Â Â Â /BREAK=...
Â Â Â Â Â /Mean = mean(V)
Â Â Â Â Â /CI = ci(V, 0.95)
Â Â Â What must I do to get the result of my hypothetical `ci'
Â Â Â I'm a PSPP novice, so maybe there is a better solution than
Â Â Â ??? what I ultimately want is to emit the confidence interval
Â Â Â variable to a CSV file using SAVE TRANSLATE.
Â Â Â Â Â Werner
Â Â Â _______________________________________________
Â Â Â Pspp-users mailing list
Â Â Â https://lists.gnu.org/mailman/listinfo/pspp-users
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 mailing list
Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.
science + technology = better workers
"You're an interesting species. An interesting mix.
You're capable of such beautiful dreams, and such
horrible nightmares. You feel so lost, so cut off,
so alone, only you're not. See, in all our
searching, the only thing we've found that makes
the emptiness bearable, is each other."
-- Carl Sagan, Contact