statsample 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data.tar.gz.sig +2 -1
  2. data/History.txt +11 -0
  3. data/Manifest.txt +2 -3
  4. data/README.txt +0 -17
  5. data/Rakefile +10 -9
  6. data/data/locale/es/LC_MESSAGES/statsample.mo +0 -0
  7. data/examples/principal_axis.rb +2 -0
  8. data/examples/u_test.rb +8 -0
  9. data/lib/distribution.rb +1 -1
  10. data/lib/statsample.rb +12 -12
  11. data/lib/statsample/anova/oneway.rb +4 -4
  12. data/lib/statsample/bivariate.rb +10 -3
  13. data/lib/statsample/bivariate/pearson.rb +55 -0
  14. data/lib/statsample/dataset.rb +57 -49
  15. data/lib/statsample/dominanceanalysis.rb +1 -2
  16. data/lib/statsample/dominanceanalysis/bootstrap.rb +46 -54
  17. data/lib/statsample/factor.rb +0 -1
  18. data/lib/statsample/factor/parallelanalysis.rb +9 -13
  19. data/lib/statsample/factor/pca.rb +5 -10
  20. data/lib/statsample/factor/principalaxis.rb +27 -33
  21. data/lib/statsample/matrix.rb +11 -11
  22. data/lib/statsample/mle.rb +0 -1
  23. data/lib/statsample/regression.rb +0 -1
  24. data/lib/statsample/reliability.rb +2 -2
  25. data/lib/statsample/reliability/multiscaleanalysis.rb +62 -15
  26. data/lib/statsample/reliability/scaleanalysis.rb +5 -6
  27. data/lib/statsample/test/f.rb +2 -5
  28. data/lib/statsample/test/levene.rb +2 -5
  29. data/lib/statsample/test/t.rb +4 -13
  30. data/lib/statsample/test/umannwhitney.rb +19 -19
  31. data/po/es/statsample.mo +0 -0
  32. data/po/es/statsample.po +304 -111
  33. data/po/statsample.pot +224 -90
  34. data/test/test_bivariate.rb +8 -69
  35. data/test/test_reliability.rb +3 -4
  36. metadata +30 -18
  37. metadata.gz.sig +0 -0
  38. data/lib/statsample/bivariate/polychoric.rb +0 -893
  39. data/lib/statsample/bivariate/tetrachoric.rb +0 -457
  40. data/test/test_bivariate_polychoric.rb +0 -70
@@ -116,8 +116,8 @@ module Statsample
116
116
  end
117
117
  def item_total_correlation
118
118
  @ds.fields.inject({}) do |a,v|
119
- vector=@ds[v].dup
120
- ds2=@ds.dup
119
+ vector=@ds[v].clone
120
+ ds2=@ds.clone
121
121
  ds2.delete_vector(v)
122
122
  total=ds2.vector_sum
123
123
  a[v]=Statsample::Bivariate.pearson(vector,total)
@@ -153,7 +153,7 @@ module Statsample
153
153
  end
154
154
  def stats_if_deleted
155
155
  @ds.fields.inject({}) do |a,v|
156
- ds2=@ds.dup
156
+ ds2=@ds.clone
157
157
  ds2.delete_vector(v)
158
158
  total=ds2.vector_sum
159
159
  a[v]={}
@@ -164,10 +164,11 @@ module Statsample
164
164
  a
165
165
  end
166
166
  end
167
- def report_building(builder)
167
+ def report_building(builder) #:nodoc:
168
168
  builder.section(:name=>@name) do |s|
169
169
  s.table(:name=>_("Summary for %s") % @name) do |t|
170
170
  t.row [_("Items"), @ds.fields.size]
171
+ t.row [_("Valid cases"), @valid_n]
171
172
  t.row [_("Sum mean"), @mean]
172
173
  t.row [_("Sum sd"), @sd]
173
174
  t.row [_("Sum variance"), @variance]
@@ -177,10 +178,8 @@ module Statsample
177
178
  t.row [_("Skewness"), "%0.4f" % @skew]
178
179
  t.row [_("Kurtosis"), "%0.4f" % @kurtosis]
179
180
  t.hr
180
- t.row [_("Valid n"), @valid_n]
181
181
  t.row [_("Cronbach's alpha"), "%0.4f" % @alpha]
182
182
  t.row [_("Standarized Cronbach's alpha"), "%0.4f" % @alpha_standarized]
183
- t.hr
184
183
  t.row [_("Variances mean"), "%g" % @variances_mean]
185
184
  t.row [_("Covariances mean") , "%g" % @covariances_mean]
186
185
  end
@@ -4,7 +4,7 @@ module Statsample
4
4
  # An F-test is any statistical test in which the test statistic has an F-distribution under the null hypothesis. It is most often used when comparing statistical models that have been fit to a data set, in order to identify the model that best fits the population from which the data were sampled.
5
5
  class F
6
6
  include Statsample::Test
7
-
7
+ include Summarizable
8
8
  attr_reader :var_num, :var_den, :df_num, :df_den, :var_total, :df_total
9
9
  # Tails for probability (:both, :left or :right)
10
10
  attr_accessor :tails
@@ -23,16 +23,13 @@ module Statsample
23
23
  @df_den=df_den
24
24
  @var_total=var_num+var_den
25
25
  @df_total=df_num+df_den
26
- opts_default={:tails=>:right, :name=>"F Test"}
26
+ opts_default={:tails=>:right, :name=>_("F Test")}
27
27
  @opts=opts_default.merge(opts)
28
28
  raise "Tails should be right or left, not both" if @opts[:tails]==:both
29
29
  opts_default.keys.each {|k|
30
30
  send("#{k}=", @opts[k])
31
31
  }
32
32
  end
33
- def summary
34
- ReportBuilder.new(:no_title=>true).add(self).to_text
35
- end
36
33
  def f
37
34
  @var_num.quo(@var_den)
38
35
  end
@@ -20,6 +20,7 @@ module Statsample
20
20
  # * NIST/SEMATECH e-Handbook of Statistical Methods. Available on http://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.htm
21
21
  class Levene
22
22
  include Statsample::Test
23
+ include Summarizable
23
24
  # Degrees of freedom 1 (k-1)
24
25
  attr_reader :d1
25
26
  # Degrees of freedom 2 (n-k)
@@ -33,7 +34,7 @@ module Statsample
33
34
  else
34
35
  @vectors=input
35
36
  end
36
- @name="Levene Test"
37
+ @name=_("Levene Test")
37
38
  opts.each{|k,v|
38
39
  self.send("#{k}=",v) if self.respond_to? k
39
40
  }
@@ -46,10 +47,6 @@ module Statsample
46
47
  def report_building(builder) # :nodoc:
47
48
  builder.text "%s : F(%d, %d) = %0.4f , p = %0.4f" % [@name, @d1, @d2, f, probability]
48
49
  end
49
- # Summary of results
50
- def summary
51
- ReportBuilder.new(:no_title=>true).add(self).to_text
52
- end
53
50
  def compute
54
51
  n=@vectors.inject(0) {|ac,v| ac+v.n_valid}
55
52
 
@@ -67,6 +67,7 @@ module Statsample
67
67
  class OneSample
68
68
  include Math
69
69
  include Statsample::Test
70
+ include Summarizable
70
71
  # Options
71
72
  attr_accessor :opts
72
73
  # Name of test
@@ -100,11 +101,6 @@ module Statsample
100
101
  def probability
101
102
  p_using_cdf(Distribution::T.cdf(t, @df), tails)
102
103
  end
103
- # Summary of analysis
104
- #
105
- def summary
106
- ReportBuilder.new(:no_title=>true).add(self).to_text
107
- end
108
104
  def report_building(b) # :nodoc:
109
105
  b.section(:name=>@name) {|s|
110
106
  s.text "Sample mean: #{@vector.mean}"
@@ -146,9 +142,9 @@ module Statsample
146
142
  class TwoSamplesIndependent
147
143
  include Math
148
144
  include Statsample::Test
145
+
149
146
  include DirtyMemoize
150
- include GetText
151
- bindtextdomain("statsample")
147
+ include Summarizable
152
148
  # Options
153
149
  attr_accessor :opts
154
150
  # Name of test
@@ -208,14 +204,9 @@ module Statsample
208
204
  num.quo(den)
209
205
  end
210
206
 
211
- # Presents summary of analysis
212
- def summary
213
- ReportBuilder.new(:no_title=>true).add(self).to_text
214
- end
215
-
216
207
  def report_building(b) # :nodoc:
217
208
  b.section(:name=>@name) {|g|
218
- g.table(:name=>_("Mean and standard deviation"), :header=>["Variable", "m", "sd","n"]) {|t|
209
+ g.table(:name=>_("Mean and standard deviation"), :header=>[_("Variable"), _("mean"), _("sd"),_("n")]) {|t|
219
210
  t.row([@v1.name,"%0.4f" % @v1.mean,"%0.4f" % @v1.sd,@v1.n_valid])
220
211
  t.row([@v2.name,"%0.4f" % @v2.mean,"%0.4f" % @v2.sd, @v2.n_valid])
221
212
  }
@@ -20,10 +20,11 @@ module Statsample
20
20
  MAX_MN_EXACT=10000
21
21
 
22
22
  # U sampling distribution, based on Dinneen & Blakesley (1973) algorithm.
23
- # This is the algorithm used on SPSS
23
+ # This is the algorithm used on SPSS.
24
+ #
24
25
  # Parameters:
25
- # * n1: group 1 size
26
- # * n2: group 2 size
26
+ # * <tt>n1</tt>: group 1 size
27
+ # * <tt>n2</tt>: group 2 size
27
28
  # Reference:
28
29
  # * Dinneen, L., & Blakesley, B. (1973). Algorithm AS 62: A Generator for the Sampling Distribution of the Mann- Whitney U Statistic. <em>Journal of the Royal Statistical Society, 22</em>(2), 269-273
29
30
  #
@@ -109,11 +110,14 @@ module Statsample
109
110
  attr_reader :t
110
111
  # Name of test
111
112
  attr_accessor :name
113
+ include Summarizable
112
114
  #
113
115
  # Create a new U Mann-Whitney test
114
116
  # Params: Two Statsample::Vectors
115
117
  #
116
118
  def initialize(v1,v2, opts=Hash.new)
119
+ @v1=v1
120
+ @v2=v2
117
121
  @n1=v1.valid_data.size
118
122
  @n2=v2.valid_data.size
119
123
  data=(v1.valid_data+v2.valid_data).to_scale
@@ -133,29 +137,25 @@ module Statsample
133
137
  @u1=r1-((@n1*(@n1+1)).quo(2))
134
138
  @u2=r2-((@n2*(@n2+1)).quo(2))
135
139
  @u=(u1<u2) ? u1 : u2
136
- opts_default={:name=>"Mann-Whitney's U"}
140
+ opts_default={:name=>_("Mann-Whitney's U")}
137
141
  @opts=opts_default.merge(opts)
138
142
  opts_default.keys.each {|k|
139
143
  send("#{k}=", @opts[k])
140
144
  }
141
145
 
142
146
  end
143
- # Report results.
144
- def summary
145
- out=<<-HEREDOC
146
- @name
147
- Sum of ranks v1: #{@r1.to_f}
148
- Sum of ranks v1: #{@r2.to_f}
149
- U Value: #{@u.to_f}
150
- Z: #{sprintf("%0.3f",z)} (p: #{sprintf("%0.3f",z_probability)})
151
- HEREDOC
152
- if @n1*@n2<MAX_MN_EXACT
153
- out+="Exact p (Dinneen & Blakesley): #{sprintf("%0.3f",exact_probability)}"
154
- end
155
- out
156
- end
157
147
  def report_building(generator) # :nodoc:
158
- generator.text(summary)
148
+ generator.section(:name=>@name) do |s|
149
+ s.table(:name=>_("%s results") % @name) do |t|
150
+ t.row([_("Sum of ranks %s") % @v1.name, "%0.3f" % @r1])
151
+ t.row([_("Sum of ranks %s") % @v2.name, "%0.3f" % @r2])
152
+ t.row([_("U Value"), "%0.3f" % @u])
153
+ t.row([_("Z"), "%0.3f (p: %0.3f)" % [z, probability_z]])
154
+ if @n1*@n2<MAX_MN_EXACT
155
+ t.row([_("Exact p (Dinneen & Blakesley, 1973):"), "%0.3f" % probability_exact])
156
+ end
157
+ end
158
+ end
159
159
  end
160
160
  # Exact probability of finding values of U lower or equal to sample on U distribution. Use with caution with m*n>100000.
161
161
  # Uses u_sampling_distribution_as62
data/po/es/statsample.mo CHANGED
Binary file
data/po/es/statsample.po CHANGED
@@ -1,8 +1,8 @@
1
1
  msgid ""
2
2
  msgstr ""
3
- "Project-Id-Version: statsample 0.12.0\n"
4
- "POT-Creation-Date: 2010-06-10 17:00-0400\n"
5
- "PO-Revision-Date: 2010-06-10 17:02-0300\n"
3
+ "Project-Id-Version: statsample 0.13.0\n"
4
+ "POT-Creation-Date: 2010-06-21 12:23-0400\n"
5
+ "PO-Revision-Date: 2010-06-21 12:25-0300\n"
6
6
  "Last-Translator: Claudio Bustos <clbustos@gmail.com>\n"
7
7
  "Language-Team: Desarrollador\n"
8
8
  "MIME-Version: 1.0\n"
@@ -11,30 +11,86 @@ msgstr ""
11
11
  "X-Poedit-Language: Spanish\n"
12
12
  "X-Poedit-SourceCharset: utf-8\n"
13
13
 
14
- #: lib/statsample/test/t.rb:218
14
+ #: lib/statsample/test/f.rb:26
15
+ msgid "F Test"
16
+ msgstr "Prueba F"
17
+
18
+ #: lib/statsample/test/t.rb:209
15
19
  msgid "Mean and standard deviation"
16
20
  msgstr "Promedio y desviación estándar"
17
21
 
18
- #: lib/statsample/test/t.rb:222
22
+ #: lib/statsample/test/t.rb:209
23
+ #: lib/statsample/factor/pca.rb:144
24
+ #: lib/statsample/factor/pca.rb:149
25
+ #: lib/statsample/factor/pca.rb:155
26
+ #: lib/statsample/factor/principalaxis.rb:180
27
+ #: lib/statsample/factor/principalaxis.rb:185
28
+ msgid "Variable"
29
+ msgstr "Variable"
30
+
31
+ #: lib/statsample/test/t.rb:209
32
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
33
+ #: lib/statsample/factor/parallelanalysis.rb:78
34
+ msgid "mean"
35
+ msgstr "promedio"
36
+
37
+ #: lib/statsample/test/t.rb:209
38
+ msgid "sd"
39
+ msgstr "de"
40
+
41
+ #: lib/statsample/test/t.rb:209
42
+ msgid "n"
43
+ msgstr "n"
44
+
45
+ #: lib/statsample/test/t.rb:213
19
46
  msgid "Levene test for equality of variances"
20
47
  msgstr "Test de Levene para igualdad de variancas"
21
48
 
22
- #: lib/statsample/test/t.rb:224
49
+ #: lib/statsample/test/t.rb:215
23
50
  msgid "T statistics"
24
51
  msgstr "Estadístico T"
25
52
 
26
- #: lib/statsample/test/t.rb:225
53
+ #: lib/statsample/test/t.rb:216
27
54
  msgid "Equal variance"
28
55
  msgstr "Varianza Igual"
29
56
 
30
- #: lib/statsample/test/t.rb:226
57
+ #: lib/statsample/test/t.rb:217
31
58
  msgid "Non equal variance"
32
59
  msgstr "Varianza Desigual"
33
60
 
34
- #: lib/statsample/test/t.rb:228
61
+ #: lib/statsample/test/t.rb:219
35
62
  msgid "Effect size"
36
63
  msgstr "Tamaño del efecto"
37
64
 
65
+ #: lib/statsample/test/umannwhitney.rb:140
66
+ msgid "Mann-Whitney's U"
67
+ msgstr "U de Mann-Whitney"
68
+
69
+ #: lib/statsample/test/umannwhitney.rb:149
70
+ msgid "%s results"
71
+ msgstr "resultados de %s"
72
+
73
+ #: lib/statsample/test/umannwhitney.rb:150
74
+ #: lib/statsample/test/umannwhitney.rb:151
75
+ msgid "Sum of ranks %s"
76
+ msgstr "Suma de rangos %s"
77
+
78
+ #: lib/statsample/test/umannwhitney.rb:152
79
+ msgid "U Value"
80
+ msgstr "Valor de U"
81
+
82
+ #: lib/statsample/test/umannwhitney.rb:153
83
+ msgid "Z"
84
+ msgstr "Z"
85
+
86
+ #: lib/statsample/test/umannwhitney.rb:155
87
+ msgid "Exact p (Dinneen & Blakesley, 1973):"
88
+ msgstr "p exacto (Dinneen & Blakesley, 1973):"
89
+
90
+ #: lib/statsample/test/levene.rb:37
91
+ msgid "Levene Test"
92
+ msgstr "Test de Levene"
93
+
38
94
  #: lib/statsample/regression/multiple/baseengine.rb:25
39
95
  msgid "Multiple Regression: %s over %s"
40
96
  msgstr "Regresión Múltiple: %s sobre %s"
@@ -87,71 +143,63 @@ msgstr "Constante"
87
143
  msgid "Multiple reggresion of %s on %s"
88
144
  msgstr "Regresión Múltiple de %s en %s"
89
145
 
90
- #: lib/statsample/dominanceanalysis/bootstrap.rb:117
146
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:116
91
147
  msgid "Bootstrap dominance Analysis: %s over %s"
92
148
  msgstr "Resultados del Análisis de Dominancia Bootstrap: %s en %s"
93
149
 
94
- #: lib/statsample/dominanceanalysis/bootstrap.rb:140
150
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:139
95
151
  msgid "Bootstrap %d of %d"
96
152
  msgstr "Bootstrap: %d de %d"
97
153
 
98
- #: lib/statsample/dominanceanalysis/bootstrap.rb:182
99
- msgid "DAB: "
100
- msgstr "RAD:"
101
-
102
- #: lib/statsample/dominanceanalysis/bootstrap.rb:185
154
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:177
103
155
  msgid "Sample size: %d\n"
104
156
  msgstr "Tamaño de muestra: %d\n"
105
157
 
106
- #: lib/statsample/dominanceanalysis/bootstrap.rb:187
158
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:179
107
159
  msgid "Linear Regression Engine: %s"
108
160
  msgstr "Motor de Regresión Linear: %s"
109
161
 
110
- #: lib/statsample/dominanceanalysis/bootstrap.rb:189
162
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:181
111
163
  msgid "pairs"
112
164
  msgstr "pares"
113
165
 
114
- #: lib/statsample/dominanceanalysis/bootstrap.rb:189
166
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:181
115
167
  msgid "SE(Dij)"
116
168
  msgstr "EE(Dij)"
117
169
 
118
- #: lib/statsample/dominanceanalysis/bootstrap.rb:189
170
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:181
119
171
  msgid "Reproducibility"
120
172
  msgstr "Reproducibilidad"
121
173
 
122
- #: lib/statsample/dominanceanalysis/bootstrap.rb:190
174
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:182
123
175
  msgid "Complete dominance"
124
176
  msgstr "Dominancia Completa"
125
177
 
126
- #: lib/statsample/dominanceanalysis/bootstrap.rb:198
178
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:190
127
179
  msgid "Conditional dominance"
128
180
  msgstr "Dominancia Condicional"
129
181
 
130
- #: lib/statsample/dominanceanalysis/bootstrap.rb:207
182
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:199
131
183
  msgid "General Dominance"
132
184
  msgstr "Dominancia General"
133
185
 
134
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
186
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
135
187
  msgid "General averages"
136
188
  msgstr "Promedios generales"
137
189
 
138
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
190
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
139
191
  msgid "var"
140
192
  msgstr "var"
141
193
 
142
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
143
- msgid "mean"
144
- msgstr "promedio"
145
-
146
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
194
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
147
195
  msgid "se"
148
196
  msgstr "de"
149
197
 
150
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
198
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
151
199
  msgid "p.5"
152
200
  msgstr "p.5"
153
201
 
154
- #: lib/statsample/dominanceanalysis/bootstrap.rb:216
202
+ #: lib/statsample/dominanceanalysis/bootstrap.rb:208
155
203
  msgid "p.95"
156
204
  msgstr "p.95"
157
205
 
@@ -182,7 +230,7 @@ msgstr "Tabla %s"
182
230
  #: lib/statsample/crosstab.rb:116
183
231
  #: lib/statsample/crosstab.rb:151
184
232
  #: lib/statsample/crosstab.rb:173
185
- #: lib/statsample/dominanceanalysis.rb:354
233
+ #: lib/statsample/dominanceanalysis.rb:353
186
234
  msgid "Total"
187
235
  msgstr "Total"
188
236
 
@@ -200,94 +248,163 @@ msgstr "Test de homogeneidad de varianza (Levene)"
200
248
  msgid "%s Mean"
201
249
  msgstr "Promedio %s"
202
250
 
251
+ #: lib/statsample/anova/oneway.rb:35
252
+ msgid "Explained variance"
253
+ msgstr "Varianza explicada"
254
+
255
+ #: lib/statsample/anova/oneway.rb:36
256
+ msgid "Unexplained variance"
257
+ msgstr "Varianza sin explicar"
258
+
203
259
  #: lib/statsample/anova/oneway.rb:91
204
260
  msgid "Anova One-Way"
205
261
  msgstr "Anova de una vía"
206
262
 
263
+ #: lib/statsample/anova/oneway.rb:92
264
+ msgid "Between Groups"
265
+ msgstr "Entre grupos"
266
+
267
+ #: lib/statsample/anova/oneway.rb:93
268
+ msgid "Within Groups"
269
+ msgstr "Dentro de grupos"
270
+
207
271
  #: lib/statsample/anova/oneway.rb:137
208
272
  msgid "Descriptives"
209
273
  msgstr "Descriptivos"
210
274
 
211
- #: lib/statsample/bivariate/polychoric.rb:866
212
- #: lib/statsample/bivariate/tetrachoric.rb:122
213
- msgid "Contingence Table"
214
- msgstr "Tabla de Contingencia"
275
+ #: lib/statsample/bivariate/pearson.rb:33
276
+ #, fuzzy
277
+ msgid "Correlation (%s - %s)"
278
+ msgstr "Matriz de correlaciones para %s"
279
+
280
+ #: lib/statsample/bivariate/pearson.rb:51
281
+ msgid "%s : r=%0.3f (t:%0.3f, g.l.=%d, p:%0.3f / %s tails)"
282
+ msgstr "%s : r=%0.3f (t:%0.3f, g.l.=%d, p:%0.3f / %s colas)"
283
+
284
+ #: lib/statsample/histogram.rb:92
285
+ msgid "Histogram %s"
286
+ msgstr "Histograma: %s"
287
+
288
+ #: lib/statsample/factor/parallelanalysis.rb:50
289
+ #, fuzzy
290
+ msgid "Parallel Analysis"
291
+ msgstr "Análisis de Factores"
215
292
 
216
- #: lib/statsample/bivariate/polychoric.rb:874
217
- msgid "Thresholds"
218
- msgstr "Umbrales"
293
+ #: lib/statsample/factor/parallelanalysis.rb:72
294
+ #, fuzzy
295
+ msgid "Bootstrap Method: %s"
296
+ msgstr "Bootstrap: %d de %d"
219
297
 
220
- #: lib/statsample/bivariate/polychoric.rb:882
221
- msgid "Test of bivariate normality: X2 = %0.3f, df = %d, p= %0.5f"
222
- msgstr "Prueba de normalidad bivariada: X2 = %0.3f, g.l. = %d, p= %0.5f"
298
+ #: lib/statsample/factor/parallelanalysis.rb:73
299
+ #, fuzzy
300
+ msgid "Correlation Matrix type : %s"
301
+ msgstr "Matriz de correlaciones para %s"
223
302
 
224
- #: lib/statsample/bivariate/tetrachoric.rb:130
225
- msgid "SE: %0.3f"
226
- msgstr "EE: %0.3f"
303
+ #: lib/statsample/factor/parallelanalysis.rb:74
304
+ msgid "Number of variables: %d"
305
+ msgstr "Número de variables: %d"
227
306
 
228
- #: lib/statsample/bivariate/tetrachoric.rb:131
229
- msgid "Threshold X: %0.3f "
230
- msgstr "Umbral X: %0.3f"
307
+ #: lib/statsample/factor/parallelanalysis.rb:75
308
+ msgid "Number of cases: %d"
309
+ msgstr "Número de casos: %d"
231
310
 
232
- #: lib/statsample/bivariate/tetrachoric.rb:132
233
- msgid "Threshold Y: %0.3f "
234
- msgstr "Umbral Y:%0.3f"
311
+ #: lib/statsample/factor/parallelanalysis.rb:76
312
+ #, fuzzy
313
+ msgid "Number of iterations: %d"
314
+ msgstr "Suma de rangos %s"
235
315
 
236
- #: lib/statsample/bivariate/tetrachoric.rb:139
237
- msgid "Tetrachoric correlation"
238
- msgstr "Correlación tetracórica"
316
+ #: lib/statsample/factor/parallelanalysis.rb:77
317
+ msgid "Number or factors to preserve: %d"
318
+ msgstr "Número de factores a preservar: %d"
239
319
 
240
- #: lib/statsample/histogram.rb:92
241
- msgid "Histogram %s"
242
- msgstr "Histograma: %s"
320
+ #: lib/statsample/factor/parallelanalysis.rb:78
321
+ #: lib/statsample/factor/pca.rb:149
322
+ #: lib/statsample/factor/principalaxis.rb:185
323
+ msgid "Eigenvalues"
324
+ msgstr "Eigenvalues"
325
+
326
+ #: lib/statsample/factor/parallelanalysis.rb:78
327
+ #, fuzzy
328
+ msgid "Eigenvalue"
329
+ msgstr "Eigenvalues"
330
+
331
+ #: lib/statsample/factor/parallelanalysis.rb:78
332
+ msgid "actual"
333
+ msgstr "real"
243
334
 
244
- #: lib/statsample/factor/pca.rb:44
335
+ #: lib/statsample/factor/parallelanalysis.rb:78
336
+ msgid "preserve?"
337
+ msgstr "¿preservar?"
338
+
339
+ #: lib/statsample/factor/pca.rb:43
245
340
  msgid "Principal Component Analysis"
246
341
  msgstr "Análisis de componentes principales"
247
342
 
248
- #: lib/statsample/factor/pca.rb:148
249
- #: lib/statsample/factor/principalaxis.rb:183
343
+ #: lib/statsample/factor/pca.rb:143
344
+ #: lib/statsample/factor/principalaxis.rb:178
345
+ msgid "Number of factors: %d"
346
+ msgstr "Número de factores: %d"
347
+
348
+ #: lib/statsample/factor/pca.rb:144
349
+ #: lib/statsample/factor/principalaxis.rb:180
250
350
  msgid "Communalities"
251
351
  msgstr "Comunalidades"
252
352
 
253
- #: lib/statsample/factor/pca.rb:153
254
- #: lib/statsample/factor/principalaxis.rb:189
255
- msgid "Eigenvalues"
256
- msgstr "Eigenvalues"
353
+ #: lib/statsample/factor/pca.rb:144
354
+ #: lib/statsample/factor/principalaxis.rb:180
355
+ #, fuzzy
356
+ msgid "Initial"
357
+ msgstr "Condicional"
257
358
 
258
- #: lib/statsample/factor/pca.rb:159
259
- #: lib/statsample/factor/principalaxis.rb:195
359
+ #: lib/statsample/factor/pca.rb:144
360
+ #: lib/statsample/factor/principalaxis.rb:180
361
+ #, fuzzy
362
+ msgid "Extraction"
363
+ msgstr "Ecuación"
364
+
365
+ #: lib/statsample/factor/pca.rb:149
366
+ #: lib/statsample/factor/principalaxis.rb:185
367
+ #, fuzzy
368
+ msgid "Value"
369
+ msgstr "Valor de U"
370
+
371
+ #: lib/statsample/factor/pca.rb:155
372
+ #: lib/statsample/factor/principalaxis.rb:190
260
373
  msgid "Component Matrix"
261
374
  msgstr "Matriz de componentes"
262
375
 
263
- #: lib/statsample/factor/principalaxis.rb:177
264
- msgid "Factor Analysis: "
265
- msgstr "Análisis de Factores:"
376
+ #: lib/statsample/factor/principalaxis.rb:63
377
+ msgid "Variable %d"
378
+ msgstr "Variable %d"
266
379
 
267
- #: lib/statsample/factor/principalaxis.rb:178
268
- msgid "Factor Analysis"
269
- msgstr "Análisis de Factores"
380
+ #: lib/statsample/factor/principalaxis.rb:179
381
+ msgid "Iterations: %d"
382
+ msgstr "Iteraciones: %d"
270
383
 
271
- #: lib/statsample/reliability/multiscaleanalysis.rb:27
384
+ #: lib/statsample/reliability/multiscaleanalysis.rb:53
272
385
  msgid "Multiple Scale analysis"
273
386
  msgstr "Análisis de múltiples escalas"
274
387
 
275
- #: lib/statsample/reliability/multiscaleanalysis.rb:44
388
+ #: lib/statsample/reliability/multiscaleanalysis.rb:79
276
389
  msgid "Scale %s"
277
390
  msgstr "Escala %s"
278
391
 
279
- #: lib/statsample/reliability/multiscaleanalysis.rb:68
392
+ #: lib/statsample/reliability/multiscaleanalysis.rb:110
280
393
  msgid "Reliability analysis of scales"
281
394
  msgstr "Análisis de confiabilidad de escalas"
282
395
 
283
- #: lib/statsample/reliability/multiscaleanalysis.rb:74
396
+ #: lib/statsample/reliability/multiscaleanalysis.rb:116
284
397
  msgid "Correlation matrix for %s"
285
398
  msgstr "Matriz de correlaciones para %s"
286
399
 
287
- #: lib/statsample/reliability/multiscaleanalysis.rb:79
400
+ #: lib/statsample/reliability/multiscaleanalysis.rb:121
288
401
  msgid "PCA for %s"
289
402
  msgstr "ACP para %s"
290
403
 
404
+ #: lib/statsample/reliability/multiscaleanalysis.rb:126
405
+ msgid "Principal Axis for %s"
406
+ msgstr "Ejes principales para %s"
407
+
291
408
  #: lib/statsample/reliability/scaleanalysis.rb:169
292
409
  msgid "Summary for %s"
293
410
  msgstr "Sumario para %s"
@@ -297,54 +414,62 @@ msgid "Items"
297
414
  msgstr "Ítems"
298
415
 
299
416
  #: lib/statsample/reliability/scaleanalysis.rb:171
300
- msgid "Total mean"
301
- msgstr "Promedio total"
417
+ msgid "Valid cases"
418
+ msgstr "casos válidos"
302
419
 
303
420
  #: lib/statsample/reliability/scaleanalysis.rb:172
304
- msgid "Total sd"
305
- msgstr "d.e. total"
421
+ msgid "Sum mean"
422
+ msgstr "Promedio de suma"
306
423
 
307
424
  #: lib/statsample/reliability/scaleanalysis.rb:173
308
- msgid "Total variance"
309
- msgstr "Varianza Total"
425
+ msgid "Sum sd"
426
+ msgstr "d.e. de suma"
310
427
 
311
428
  #: lib/statsample/reliability/scaleanalysis.rb:174
312
- msgid "Item mean"
313
- msgstr "Promedio de los ítemes"
429
+ msgid "Sum variance"
430
+ msgstr "Varianza de suma"
314
431
 
315
432
  #: lib/statsample/reliability/scaleanalysis.rb:175
316
- msgid "Median"
317
- msgstr "Mediana"
433
+ msgid "Sum median"
434
+ msgstr "Mediana de suma"
318
435
 
319
- #: lib/statsample/reliability/scaleanalysis.rb:176
436
+ #: lib/statsample/reliability/scaleanalysis.rb:177
437
+ msgid "Item mean"
438
+ msgstr "Promedio de los ítemes"
439
+
440
+ #: lib/statsample/reliability/scaleanalysis.rb:178
320
441
  msgid "Skewness"
321
442
  msgstr "Sesgo"
322
443
 
323
- #: lib/statsample/reliability/scaleanalysis.rb:177
444
+ #: lib/statsample/reliability/scaleanalysis.rb:179
324
445
  msgid "Kurtosis"
325
446
  msgstr "Curtosis"
326
447
 
327
- #: lib/statsample/reliability/scaleanalysis.rb:178
328
- msgid "Valid n"
329
- msgstr "n válido"
330
-
331
- #: lib/statsample/reliability/scaleanalysis.rb:179
448
+ #: lib/statsample/reliability/scaleanalysis.rb:181
332
449
  msgid "Cronbach's alpha"
333
450
  msgstr "Alfa de Cronbach"
334
451
 
335
- #: lib/statsample/reliability/scaleanalysis.rb:180
452
+ #: lib/statsample/reliability/scaleanalysis.rb:182
336
453
  msgid "Standarized Cronbach's alpha"
337
454
  msgstr "Alfa de Cronbach estandarizado"
338
455
 
339
- #: lib/statsample/reliability/scaleanalysis.rb:181
456
+ #: lib/statsample/reliability/scaleanalysis.rb:183
340
457
  msgid "Variances mean"
341
458
  msgstr "Promedio de las varianzas"
342
459
 
343
- #: lib/statsample/reliability/scaleanalysis.rb:182
460
+ #: lib/statsample/reliability/scaleanalysis.rb:184
344
461
  msgid "Covariances mean"
345
462
  msgstr "Promedio de las covarianzas"
346
463
 
347
- #: lib/statsample/reliability/scaleanalysis.rb:189
464
+ #: lib/statsample/reliability/scaleanalysis.rb:186
465
+ msgid "items for obtain alpha(0.8) : %d"
466
+ msgstr "items para obtener alfa(0,8): %d"
467
+
468
+ #: lib/statsample/reliability/scaleanalysis.rb:187
469
+ msgid "items for obtain alpha(0.9) : %d"
470
+ msgstr "ítems para obtener alfa(0,9): %d"
471
+
472
+ #: lib/statsample/reliability/scaleanalysis.rb:194
348
473
  msgid "Items report for %s"
349
474
  msgstr "Reporte de ítems para %s"
350
475
 
@@ -376,46 +501,74 @@ msgstr "% Columna"
376
501
  msgid "% Total"
377
502
  msgstr "% Total"
378
503
 
379
- #: lib/statsample/dominanceanalysis.rb:122
504
+ #: lib/statsample/dominanceanalysis.rb:121
380
505
  msgid "Dominance Analysis: %s over %s"
381
506
  msgstr "Análisis de dominancia: %s en %s"
382
507
 
383
- #: lib/statsample/dominanceanalysis.rb:315
508
+ #: lib/statsample/dominanceanalysis.rb:314
384
509
  msgid "sign"
385
510
  msgstr "signo"
386
511
 
387
- #: lib/statsample/dominanceanalysis.rb:317
512
+ #: lib/statsample/dominanceanalysis.rb:316
388
513
  msgid "Dominance Analysis result"
389
514
  msgstr "Resultados del análisis de dominancia"
390
515
 
391
- #: lib/statsample/dominanceanalysis.rb:318
516
+ #: lib/statsample/dominanceanalysis.rb:317
392
517
  msgid "Model 0"
393
518
  msgstr "Modelo 0"
394
519
 
395
- #: lib/statsample/dominanceanalysis.rb:333
520
+ #: lib/statsample/dominanceanalysis.rb:332
396
521
  msgid "k=%d Average"
397
522
  msgstr "k=%d Promedio"
398
523
 
399
- #: lib/statsample/dominanceanalysis.rb:345
524
+ #: lib/statsample/dominanceanalysis.rb:344
400
525
  msgid "Overall averages"
401
526
  msgstr "Promedios generales"
402
527
 
403
- #: lib/statsample/dominanceanalysis.rb:354
528
+ #: lib/statsample/dominanceanalysis.rb:353
404
529
  msgid "Pairwise dominance"
405
530
  msgstr "Dominancia en pares"
406
531
 
407
- #: lib/statsample/dominanceanalysis.rb:354
532
+ #: lib/statsample/dominanceanalysis.rb:353
408
533
  msgid "Pairs"
409
534
  msgstr "Pares"
410
535
 
411
- #: lib/statsample/dominanceanalysis.rb:354
536
+ #: lib/statsample/dominanceanalysis.rb:353
412
537
  msgid "Conditional"
413
538
  msgstr "Condicional"
414
539
 
415
- #: lib/statsample/dominanceanalysis.rb:354
540
+ #: lib/statsample/dominanceanalysis.rb:353
416
541
  msgid "General"
417
542
  msgstr "General"
418
543
 
544
+ #: lib/statsample/matrix.rb:96
545
+ msgid "X%d"
546
+ msgstr "X%d"
547
+
548
+ #: lib/statsample/matrix.rb:99
549
+ msgid "Y%d"
550
+ msgstr "Y%d"
551
+
552
+ #: lib/statsample/matrix.rb:110
553
+ #, fuzzy
554
+ msgid "Covariate matrix %d"
555
+ msgstr "Matriz de correlaciones para %s"
556
+
557
+ #: lib/statsample/matrix.rb:152
558
+ #, fuzzy
559
+ msgid "Correlation"
560
+ msgstr "Matriz de correlaciones para %s"
561
+
562
+ #: lib/statsample/matrix.rb:152
563
+ #, fuzzy
564
+ msgid "Covariance"
565
+ msgstr "Promedio de las covarianzas"
566
+
567
+ #: lib/statsample/matrix.rb:152
568
+ #, fuzzy
569
+ msgid " Matrix"
570
+ msgstr "Matriz de componentes"
571
+
419
572
  #: lib/statsample/vector.rb:614
420
573
  msgid "n :%d"
421
574
  msgstr "n: %s"
@@ -448,14 +601,54 @@ msgstr "promedio: %0.3f"
448
601
  msgid "sd: %0.4f"
449
602
  msgstr "d.e.: %0.3f"
450
603
 
451
- #: lib/statsample/dataset.rb:131
604
+ #: lib/statsample/dataset.rb:133
452
605
  msgid "Dataset %d"
453
606
  msgstr "Dataset %d"
454
607
 
455
- #: lib/statsample/dataset.rb:808
608
+ #: lib/statsample/dataset.rb:821
456
609
  msgid "Cases: %d"
457
610
  msgstr "Casos: %s"
458
611
 
612
+ #~ msgid "Polychoric correlation"
613
+ #~ msgstr "Correlación policórica"
614
+ #~ msgid "Minimizing using GSL Brent method\n"
615
+ #~ msgstr "Minimizando usando método GSL Brent\n"
616
+ #~ msgid "Two step minimization using %s method\n"
617
+ #~ msgstr "Minimización en dos etapas usando método %s\n"
618
+ #~ msgid "Contingence Table"
619
+ #~ msgstr "Tabla de Contingencia"
620
+ #~ msgid "Thresholds"
621
+ #~ msgstr "Umbrales"
622
+
623
+ #, fuzzy
624
+ #~ msgid "Threshold X %d"
625
+ #~ msgstr "Umbral X: %0.3f"
626
+
627
+ #, fuzzy
628
+ #~ msgid "Threshold Y %d"
629
+ #~ msgstr "Umbral Y:%0.3f"
630
+ #~ msgid "Test of bivariate normality: X2 = %0.3f, df = %d, p= %0.5f"
631
+ #~ msgstr "Prueba de normalidad bivariada: X2 = %0.3f, g.l. = %d, p= %0.5f"
632
+ #~ msgid "SE: %0.3f"
633
+ #~ msgstr "EE: %0.3f"
634
+ #~ msgid "Threshold X: %0.3f "
635
+ #~ msgstr "Umbral X: %0.3f"
636
+ #~ msgid "Threshold Y: %0.3f "
637
+ #~ msgstr "Umbral Y:%0.3f"
638
+ #~ msgid "Tetrachoric correlation"
639
+ #~ msgstr "Correlación tetracórica"
640
+ #~ msgid "Factor Analysis: "
641
+ #~ msgstr "Análisis de Factores:"
642
+ #~ msgid "DAB: "
643
+ #~ msgstr "RAD:"
644
+ #~ msgid "Total mean"
645
+ #~ msgstr "Promedio total"
646
+ #~ msgid "Total sd"
647
+ #~ msgstr "d.e. total"
648
+ #~ msgid "Total variance"
649
+ #~ msgstr "Varianza Total"
650
+ #~ msgid "Median"
651
+ #~ msgstr "Mediana"
459
652
  #~ msgid "\"Anova Two-Way on #{@ds[dep_var].name}\""
460
653
  #~ msgstr "\"Anova de dos vías en #{@ds[dep_var].name}\""
461
654
  #~ msgid "Crosstab"