Chi square test

This is a discussion on Chi square test within the C Programming forums, part of the General Programming Boards category; Hi All, I have some data in my C code, I want to execute chi-square test on those data. I ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    2

    Chi square test

    Hi All,

    I have some data in my C code, I want to execute chi-square test on those data.

    I can have observed, expected values as well as the chisquare value, but I have no clue how to calculate the chi square distribution value.

    I can write a program in R to compute the "pvalue" of the chisquare test, but I am not being able to call that R function from C.

    Do you have any idea about how can I use execv()(or similar) function to execute R functions ?

    Thanks a bunch,

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    2
    Hi tabstop,

    I did not find anything while googling that.. Please do let me know if you get something!!

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I wouldn't keep hunting for it if the hits on Google don't show what you need. It's been two days.

    What do you think about writing that one function, in C? If you have a template for it (the function in R), it doesn't sound too difficult.

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    what is chi square test man ?

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I know very little about it. If I understand it right, it's a statistics test which can tell you if the data you've received is within the expected range.

  7. #7
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by learnerC View Post
    Hi tabstop,

    I did not find anything while googling that.. Please do let me know if you get something!!
    Did you click the link? Did you click the first link on that page? If so, why does that not give you what you want?

  8. #8
    Registered User
    Join Date
    Sep 2009
    Location
    USA
    Posts
    63
    Quote Originally Posted by tabstop View Post

    the link perfects fine.......


    What is chi square test here

    Chi-square test - Wikipedia, the free encyclopedia

  9. #9
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I hate to "gangbang" but surely you are just some kind of sightless bot anyway, learnerC...

    Quote Originally Posted by learnerC View Post
    I can write a program in R to compute the "pvalue" of the chisquare test, but I am not being able to call that R function from C.

    Do you have any idea about how can I use execv()(or similar) function to execute R functions ?
    Quote Originally Posted by tabstop View Post
    Did you click the link? Did you click the first link on that page? If so, why does that not give you what you want?
    Quote Originally Posted by learnerC View Post
    Hi tabstop,
    I did not find anything while googling that.. Please do let me know if you get something!!
    Perhaps you need to TURN ON THE MONITOR.
    Attached Images Attached Images  
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inverse chi square cumulative distribution
    By aeldes1 in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 02:23 PM
  2. Loop seg error
    By Zishaan in forum Game Programming
    Replies: 2
    Last Post: 03-28-2007, 02:27 PM
  3. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 07:57 PM
  4. Help with my draughts game
    By Zishaan in forum C++ Programming
    Replies: 9
    Last Post: 03-24-2007, 08:33 AM
  5. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 01:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21