Re: P-value from chi-square value: source code
- From: iandjmsmith@xxxxxxx (Ian Smith)
- Date: 6 Apr 2005 05:18:42 -0700
"Dhruv" <bhaveshrb@xxxxxxxxx> wrote in message news:<1112757036.767719.202850@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
> Hello,
>
> Could anyone send me a link to the source code in C++ for calculating
> the P-value from a chi-square value.
>
> Thanks n Wishes,
> Dhruv
You are looking for code to evaluate the upper tail probability of a
chi-squared distribution.
http://odin.mdacc.tmc.edu/anonftp/#DCDFLIB
and
http://cvs.gnome.org/viewcvs/*checkout*/gnumeric/src/mathfunc.c
both have C code which will do it and there is nothing better out
there that I know of. I do not know the licencing arrangements. That
will probably depend on how you want to use it. If there are any
licencing problems then I have code which can be translated to C++
without too much effort.
Ian Smith
.
- Follow-Ups:
- Re: P-value from chi-square value: source code
- From: Dhruv
- Re: P-value from chi-square value: source code
- References:
- P-value from chi-square value: source code
- From: Dhruv
- P-value from chi-square value: source code
- Prev by Date: Re: Inferred Correlation via Known Correlations?
- Next by Date: Is this binomial distribution?
- Previous by thread: P-value from chi-square value: source code
- Next by thread: Re: P-value from chi-square value: source code
- Index(es):
Relevant Pages
|