Re: P-value from chi-square value: source code



Thank you Ian.
I actually tried the code and am having some problems with it.

I am sort of a newbie to programming and though I have managed to write
some good code, I am unable to figure out the problem at present.

What I need basically is a function which takes in Chi-square value and
returns the P-value. Please help me on this.

Wishes,
Dhruv

Ian Smith wrote:
> "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

.



Relevant Pages

  • Re: Voting
    ... > Ian Smith wrote: ... but those with exceptionally high IQs might be able to fake a ...
    (soc.culture.scottish)
  • Re: Limits on skill improvement and acquisition
    ... ian smith wrote: ... I'd be interested in seeing any of these newspaper articles (I think ... you mentioned them in a previous thread on brain stuff). ... Im not Ian, but you can atleast see one here: ...
    (rec.juggling)
  • Re: Voting
    ... Ian Morrison wrote: ... > Ian Smith wrote: ... >> The assertion that an exceptionally-high IQ is bad for driving, ...
    (soc.culture.scottish)