bug-gnu-pspp
[Top][All Lists]
Advanced

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

PSPP-BUG: [bug #50366] calculation of variance under frequencies only gi


From: Friedrich Beckmann
Subject: PSPP-BUG: [bug #50366] calculation of variance under frequencies only give mean
Date: Tue, 21 Feb 2017 09:13:45 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8

Update of bug #50366 (project pspp):

                  Status:        Cannot Reproduce => In Progress            

    _______________________________________________________

Follow-up Comment #2:

Sorry, I only looked at the descriptives command...

The following shows the problem with the FREQUENCIES command:


data list list /forename (A12) height (DOT8.3). 
begin data. 
Ahmed 188 
bertram 167 
Catherine 134.231 
David 109.1 
end data 
Descriptives variables = height 
/statistics = variance.

Frequencies variables = height 
/statistics = variance.  


The output is:


FriedrichsMacBook:pspp fritz$ pspp bugreport-variance.sps 
Unformatierte Daten werden aus INLINE gelesen.
╭────────┬──────╮
│Variable│Format│
╞════════╪══════╡
│forename│A12   │
│height  │DOT8.3│
╰────────┴──────╯

Gültige Fälle = 4; Fälle mit fehlenden Werten = 0.
╭────────╥─┬───────╮
│Variable║N│Varianz│
╞════════╬═╪═══════╡
│height  ║4│1217,92│
╰────────╨─┴───────╯

height
╭──────────┬───────┬──────────┬───────┬────────────────┬───────────────────╮
│Wertelabel│  Wert │Häufigkeit│Prozent│Gültige
Prozente│Kumulierte Prozente│
╞══════════╪═══════╪══════════╪═══════╪════════════════╪═══════════════════╡
│          │109.100│         1│  25,00│           25,00│          
   25,00│
│          │134.231│         1│  25,00│           25,00│          
   50,00│
│          │167.000│         1│  25,00│           25,00│          
   75,00│
│          │188.000│         1│  25,00│           25,00│          
  100,00│
╞══════════╧═══════╪══════════╪═══════╪════════════════╪═══════════════════╡
│            Gesamt│         4│  100,0│           100,0│            
      │
╰──────────────────┴──────────┴───────┴────────────────┴───────────────────╯

height
╭─────────────────────────┬──────╮
│N          Gültig        │     4│
│           Fehlende Werte│     0│
│Mittelwert               │149,58│
╰─────────────────────────┴──────╯


I think your patch proposal is correct.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50366>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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