emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* statistical operations with org-mode?
@ 2015-03-27 14:23 Jude DaShiell
  2015-03-29 20:51 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Jude DaShiell @ 2015-03-27 14:23 UTC (permalink / raw)
  To: emacs-orgmode

After having read through the org-mode info on spreadsheets several times 
and having also read through the calc info a few times I have not ben able 
to get pstdev() to produce anything but errors.  Having checked over the 
data in a table, I found a couple instances where data values were missing 
so I expect this could account for the errors by itself.  In column 3 I 
put the formula =pstdev(@<..@>) and also tried with =pstdev($3).  What is 
the correct syntax?  I wasn't sure which if any would work after having 
done all of that reading.



-- Twitter: JudeDaShiell

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: statistical operations with org-mode?
  2015-03-27 14:23 statistical operations with org-mode? Jude DaShiell
@ 2015-03-29 20:51 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2015-03-29 20:51 UTC (permalink / raw)
  To: emacs-orgmode

Jude DaShiell <jdashiel@panix.com> writes:

> After having read through the org-mode info on spreadsheets several
> times and having also read through the calc info a few times I have
> not ben able to get pstdev() to produce anything but errors.  Having
> checked over the data in a table, I found a couple instances where
> data values were missing so I expect this could account for the errors
> by itself.  In column 3 I put the formula =pstdev(@<..@>) and also
> tried with =pstdev($3).  What is the correct syntax?  I wasn't sure
> which if any would work after having done all of that reading.
>

AFAIK, the sample standard deviation calc function for a vector is called vsdev
and the population standard deviation is called vpsdev.

Here is an example of calling them (as well as the vmean and vmedian
functions):

--8<---------------cut here---------------start------------->8---
* Calculate stats on a column

| seqno |      value |            |
|-------+------------+------------|
|     1 | 0.34437004 | 0.49622740 |
|     2 | 0.65321163 | 0.49569043 |
|     3 | 0.17841555 | 0.22716774 |
|     4 | 0.28259230 |            |
|     5 | 0.88476454 |            |
|     6 | 0.65279340 |            |
|     7 | 0.12817118 |            |
|     8 | 0.50326488 |            |
|     9 | 0.34985056 |            |
|    10 | 0.78586253 |            |
|    11 | 0.49569043 |            |
|    12 | 0.46154064 |            |
|    13 | 0.65004499 |            |
|    14 | 0.74102345 |            |
|    15 | 0.33181485 |            |
#+TBLFM: @2$3 = vmean(@2$2..@>$2) :: @3$3 = vmedian(@2$2..@>$2) :: @4$3 = vsdev(@2$2..@>$2) :: @5$3 = vpsdev(@2$2..@>$2)


--8<---------------cut here---------------end--------------->8---

HTH.

-- 
Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-29 20:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 14:23 statistical operations with org-mode? Jude DaShiell
2015-03-29 20:51 ` Nick Dokos

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).