* [PATCH] gnu: Add r-xnomial.
@ 2016-05-02 8:57 Ricardo Wurmus
2016-05-02 9:05 ` Ben Woodcroft
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2016-05-02 8:57 UTC (permalink / raw)
To: guix-devel
* gnu/packages/statistics.scm (r-xnomial): New variable.
---
gnu/packages/statistics.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 2178984..3d0faf7 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1828,6 +1828,34 @@ documents (including DTDs), both local and accessible via HTTP or FTP. Also
offers access to an XPath \"interpreter\".")
(license license:bsd-2)))
+(define-public r-xnomial
+ (package
+ (name "r-xnomial")
+ (version "1.0.4")
+ (source
+ (origin (method url-fetch)
+ (uri (cran-uri "XNomial" version))
+ (sha256
+ (base32
+ "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
+ (properties (quasiquote ((upstream-name . "XNomial"))))
+ (build-system r-build-system)
+ (home-page "http://cran.r-project.org/web/packages/XNomial")
+ (synopsis "Goodness-of-Fit test for multinomial data")
+ (description
+ "This package provides an exact Goodness-of-Fit test for
+multinomial data with fixed probabilities. It can be used to
+determine whether a set of counts fits a given expected ratio. To see
+whether a set of observed counts fits an expectation, one can examine
+all possible outcomes with @code{xmulti()} or a random sample of them
+with @code{xmonte()} and find the probability of an observation
+deviating from the expectation by at least as much as the observed.
+As a measure of deviation from the expected, one can use the
+log-likelihood ratio, the multinomial probability, or the classic
+chi-square statistic. A histogram of the test statistic can also be
+plotted and compared with the asymptotic curve.")
+ (license (list license:gpl2+ license:gpl3+))))
+
(define-public r-lambda-r
(package
(name "r-lambda-r")
--
2.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add r-xnomial.
2016-05-02 8:57 [PATCH] gnu: Add r-xnomial Ricardo Wurmus
@ 2016-05-02 9:05 ` Ben Woodcroft
2016-05-02 9:11 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Ben Woodcroft @ 2016-05-02 9:05 UTC (permalink / raw)
To: Ricardo Wurmus, guix-devel
On 02/05/16 18:57, Ricardo Wurmus wrote:
> * gnu/packages/statistics.scm (r-xnomial): New variable.
LGTM
ben
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add r-xnomial.
2016-05-02 9:05 ` Ben Woodcroft
@ 2016-05-02 9:11 ` Ricardo Wurmus
0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2016-05-02 9:11 UTC (permalink / raw)
To: Ben Woodcroft; +Cc: guix-devel
Ben Woodcroft <b.woodcroft@uq.edu.au> writes:
> On 02/05/16 18:57, Ricardo Wurmus wrote:
>> * gnu/packages/statistics.scm (r-xnomial): New variable.
> LGTM
> ben
Thanks. Pushed as b74f64a960542b0679ab13de0dd28adc496cf084.
~~ Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-02 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 8:57 [PATCH] gnu: Add r-xnomial Ricardo Wurmus
2016-05-02 9:05 ` Ben Woodcroft
2016-05-02 9:11 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.