Re: P-value from chi-square value: source code
- From: "Dhruv" <bhaveshrb@xxxxxxxxx>
- Date: 9 Apr 2005 10:48:45 -0700
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
.
- References:
- P-value from chi-square value: source code
- From: Dhruv
- Re: P-value from chi-square value: source code
- From: Ian Smith
- P-value from chi-square value: source code
- Prev by Date: How to simulate a Poisson-distributed random sample
- Next by Date: Re: P-value from chi-square value: source code
- Previous by thread: Re: P-value from chi-square value: source code
- Next by thread: Re: P-value from chi-square value: source code
- Index(es):
Relevant Pages
|