From 6f29d63f368e2d417d8ad208e5fd6e41b8778bca Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 12 Apr 2007 09:48:34 +0000 Subject: [PATCH] Fixed Bug #19424 (confidence interval from EXAMINE). --- Makefile.am | 2 +- Smake | 1 + src/language/stats/examine.q | 6 +----- tests/command/examine.sh | 16 ++++++++-------- tests/command/trimmed-mean.sh | 4 ++-- 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9a242a31..806fc2a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS = gnits 1.10 subdir-objects SUBDIRS = gl po -DISTCLEANFILES = ./po/stamp-po +DISTCLEANFILES = ./po/stamp-po xconfigure BUILT_SOURCES = AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_builddir)/gl diff --git a/Smake b/Smake index 8c068c01..c716bae0 100644 --- a/Smake +++ b/Smake @@ -132,5 +132,6 @@ clean: find . -name Makefile.in -exec rm -f {} \; rm -f compile rm -f ltmain.sh + rm -f reloc-ldflags install-reloc .PHONY: all gettextize potfiles clean diff --git a/src/language/stats/examine.q b/src/language/stats/examine.q index b040e19b..bb6f9eec 100644 --- a/src/language/stats/examine.q +++ b/src/language/stats/examine.q @@ -1507,18 +1507,14 @@ show_descriptives (const struct variable **dependent_var, } - - /* Fill in the descriptives data */ void populate_descriptives (struct tab_table *tbl, int col, int row, const struct metrics *m) { - - const double t = gsl_cdf_tdist_Qinv (1 - cmd.n_cinterval[0]/100.0/2.0, \ + const double t = gsl_cdf_tdist_Qinv ((1 - cmd.n_cinterval[0] / 100.0)/2.0, m->n -1); - tab_text (tbl, col, row, TAB_LEFT | TAT_TITLE, diff --git a/tests/command/examine.sh b/tests/command/examine.sh index 3ca02719..7c1f3942 100755 --- a/tests/command/examine.sh +++ b/tests/command/examine.sh @@ -155,8 +155,8 @@ Case# QUALITY W BRAND # #Statistic|Std. Error# #============================================================#=========#==========# #Breaking Strain Mean # 3.54 | .324 # -# 95% Confidence Interval for Mean Lower Bound# 3.562 | # -# Upper Bound# 3.521 | # +# 95% Confidence Interval for Mean Lower Bound# 2.871 | # +# Upper Bound# 4.212 | # # 5% Trimmed Mean # 3.50 | # # Median # 4.00 | # # Variance # 2.520 | # @@ -213,8 +213,8 @@ Case# QUALITY W BRAND # Manufacturer #Statistic|Std. Error# #=========================================================================#=========#==========# #Breaking Strain Aspeger Mean # 2.25 | .453 # -# 95% Confidence Interval for Mean Lower Bound# 2.279 | # -# Upper Bound# 2.221 | # +# 95% Confidence Interval for Mean Lower Bound# 1.178 | # +# Upper Bound# 3.322 | # # 5% Trimmed Mean # 2.22 | # # Median # 2.00 | # # Variance # 1.643 | # @@ -227,8 +227,8 @@ Case# QUALITY W BRAND # Kurtosis # -1.546 | 1.481 # # ----------------------------------------------------------#---------+----------# # Bloggs Mean # 3.50 | .378 # -# 95% Confidence Interval for Mean Lower Bound# 3.525 | # -# Upper Bound# 3.475 | # +# 95% Confidence Interval for Mean Lower Bound# 2.606 | # +# Upper Bound# 4.394 | # # 5% Trimmed Mean # 3.50 | # # Median # 4.00 | # # Variance # 1.143 | # @@ -241,8 +241,8 @@ Case# QUALITY W BRAND # Kurtosis # -.831 | 1.481 # # ----------------------------------------------------------#---------+----------# # Charlies Mean # 4.88 | .441 # -# 95% Confidence Interval for Mean Lower Bound# 4.904 | # -# Upper Bound# 4.846 | # +# 95% Confidence Interval for Mean Lower Bound# 3.833 | # +# Upper Bound# 5.917 | # # 5% Trimmed Mean # 4.86 | # # Median # 5.00 | # # Variance # 1.554 | # diff --git a/tests/command/trimmed-mean.sh b/tests/command/trimmed-mean.sh index 8e51c0b2..ea30f8f5 100755 --- a/tests/command/trimmed-mean.sh +++ b/tests/command/trimmed-mean.sh @@ -106,8 +106,8 @@ diff -b $TEMPDIR/pspp.list - << EOF # #Statistic|Std. Error# #==============================================#=========#==========# #X Mean # 2.02 | .034 # -# 95% Confidence Interval for Mean Lower Bound# 2.021 | # -# Upper Bound# 2.017 | # +# 95% Confidence Interval for Mean Lower Bound# 1.952 | # +# Upper Bound# 2.087 | # # 5% Trimmed Mean # 2.00 | # # Median # 2.00 | # # Variance # .058 | # -- 2.30.2