+ Reply to Thread
Results 1 to 12 of 12

Thread: Help Anova

  1. #1
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help Anova




    hi everyone,
    I currently try to find an open source C/C++statistical library. Basically, I want to calculate the p and F value from oneway (or N way anova). Does anyone know where downloadable ( free) c/c++ statiscal library ?

    Thank you very much

  2. #2
    TS Contributor
    Points: 17,636, Level: 84
    Level completed: 58%, Points required for next Level: 214
    JohnM's Avatar
    Posts
    1,948
    Thanks
    0
    Thanked 6 Times in 5 Posts
    Google has links to many of them I'm sure.....try typing in things like C++ and library and ANOVA in the search box.

  3. #3
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i did not find any statistical libraries for c/c++ without paying money. Do have any free libararies ?
    thanks

  4. #4
    Admin
    Points: 20,637, Level: 90
    Level completed: 58%, Points required for next Level: 213
    quark's Avatar
    Location
    Canada
    Posts
    479
    Thanks
    25
    Thanked 196 Times in 73 Posts
    Hi,

    The Numerical Algorithms Group makes a popular statistical library for c/c++ called NAG C Library. You can also search for anova in c if you are only interested in the anova table.

  5. #5
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you!
    but this library has only 30 days trails
    Anyone knows other c/c++/C# statistical libraries for Anova ?
    Thanks

  6. #6
    TS Contributor
    Points: 17,636, Level: 84
    Level completed: 58%, Points required for next Level: 214
    JohnM's Avatar
    Posts
    1,948
    Thanks
    0
    Thanked 6 Times in 5 Posts
    I've done a little bit of programming in C, but mostly in VB - if you can't find an ANOVA library, it shouldn't be that big of a deal to create your own 1-way ANOVA function....right? I've done similar types of things, and once you do it, it comes in very handy....

  7. #7
    TS Contributor
    Points: 17,636, Level: 84
    Level completed: 58%, Points required for next Level: 214
    JohnM's Avatar
    Posts
    1,948
    Thanks
    0
    Thanked 6 Times in 5 Posts
    This link may provide some free sources:

    http://members.aol.com/johnp71/javas...ml#Programming

  8. #8
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank a lot guys,
    I did write a program to do one way anova . The big deal in here is that I could not find how to calculate the p value from the f value.
    You guys have any ideas about how to calculate p value from f value in anova function? such as some formulars ???

    I found in Mathlab the functions call
    Pvalue = 1 - fcdf (Fvalue, degree_freedom(1), degree_freedom(2));

    however, it is too hard to write a function fcdf because inside this function has a nested other functions that is impossible to implement in C++.

    any helps ?
    Thank you

  9. #9
    TS Contributor
    Points: 17,636, Level: 84
    Level completed: 58%, Points required for next Level: 214
    JohnM's Avatar
    Posts
    1,948
    Thanks
    0
    Thanked 6 Times in 5 Posts
    Not sure if this will help you, but:

    The following page shows how to generate various probability distributions from the uniform random number generator available with any software, including VB or C:

    http://members.aol.com/johnp71/course/course04.html

    Follow the chain from Uniform --> Normal --> Chi-Square --> F

    I used some of this logic to help me generate skewed (i.e., chi-square) distributions and distributions with kurtosis (i.e, t-distribution) in my thesis.

    Instead of going from uniform --> normal the way it is described above (kinda slow), it may go faster if you use the Box-Muller method described here:

    http://www.taygeta.com/random/gaussian.html

  10. #10
    Points: 4,886, Level: 44
    Level completed: 68%, Points required for next Level: 64

    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Its a pretty short algorithm. If you can't find a c program, you probably won't have much trouble translating from Javascript to c. See the page source for:
    http://davidmlane.com/hyperstat/F_table.html

    and/or

    http://members.aol.com/johnp71/pdfs.html

  11. #11
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the Java page source. I don't know how to see the code behind the page ? Can someone tell me how to see the source code of that page ?
    Thanks

  12. #12
    Points: 4,920, Level: 44
    Level completed: 85%, Points required for next Level: 30

    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    no worries, I figured it out.Thanks

+ Reply to Thread

           




Similar Threads

  1. Replies: 0
    Last Post: 12-08-2010, 12:16 PM
  2. 2 way anova vs.2 factor anova vs. block anova
    By ealeql in forum Statistics
    Replies: 3
    Last Post: 11-19-2010, 10:48 AM
  3. Replies: 0
    Last Post: 10-11-2010, 03:53 PM
  4. Using mixed ANOVA with factors from 4 way ANOVA
    By jamie10 in forum Statistics
    Replies: 0
    Last Post: 08-10-2010, 02:16 PM
  5. Replies: 2
    Last Post: 07-26-2010, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats