In this years biostat teaching I will include Rcommander (it indeed simplifies syntax problems that makes students frequently miss the core statistical problems). But I could not find how to make a simple chisquare comparison between observed frequencies and expected frequencies (eg in genetics where you expect phenotypic frequencies corresponding to 3:1 in standard dominant/recessif alleles). Any idea where this feature might be hidden? Or could it be added to Rcommander? Thanks, Christian. ps: in case I am not making myself clear, can Rcommander be made to perform> chisq.test(c(61,39),p=c(0.75,0.25))
Hello, Just look at Statistics -> Contingency tables. There is an option for making the chi square test there. Best, Philippe Grosjean, ..............................................<??}))><........ ) ) ) ) ) ( ( ( ( ( Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( ( Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Pentagone (3D08) ( ( ( ( ( Academie Universitaire Wallonie-Bruxelles ) ) ) ) ) 8, av du Champ de Mars, 7000 Mons, Belgium ( ( ( ( ( ) ) ) ) ) phone: + 32.65.37.34.97, fax: + 32.65.37.30.54 ( ( ( ( ( email: Philippe.Grosjean at umh.ac.be ) ) ) ) ) ( ( ( ( ( web: http://www.umh.ac.be/~econum ) ) ) ) ) http://www.sciviews.org ( ( ( ( ( .............................................................. Christian Jost wrote:> In this years biostat teaching I will include Rcommander (it indeed > simplifies syntax problems that makes students frequently miss the > core statistical problems). But I could not find how to make a simple > chisquare comparison between observed frequencies and expected > frequencies (eg in genetics where you expect phenotypic frequencies > corresponding to 3:1 in standard dominant/recessif alleles). Any idea > where this feature might be hidden? Or could it be added to > Rcommander? > > Thanks, Christian. > > ps: in case I am not making myself clear, can Rcommander be made to perform > >> chisq.test(c(61,39),p=c(0.75,0.25)) > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >
Dear Christian,>From the Rcmdr menus, select "Statistics -> Summaries -> Frequencydistributions", and check the "Chisquare goodness of fit test" box in the resulting dialog. This will bring up a dialog box where you can enter hypothesized probabilities from which expected frequencies will be calculated. Regards, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Christian Jost > Sent: Thursday, September 15, 2005 5:40 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Rcommander and simple chisquare > > In this years biostat teaching I will include Rcommander (it > indeed simplifies syntax problems that makes students > frequently miss the core statistical problems). But I could > not find how to make a simple chisquare comparison between > observed frequencies and expected frequencies (eg in genetics > where you expect phenotypic frequencies corresponding to 3:1 > in standard dominant/recessif alleles). Any idea where this > feature might be hidden? Or could it be added to Rcommander? > > Thanks, Christian. > > ps: in case I am not making myself clear, can Rcommander be > made to perform > > chisq.test(c(61,39),p=c(0.75,0.25)) > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
Dear Christian,>From the Rcmdr menus, select "Statistics -> Summaries -> Frequencydistributions", and check the "Chisquare goodness of fit test" box in the resulting dialog. This will bring up a dialog box where you can enter hypothesized probabilities from which expected frequencies will be calculated. Regards, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Christian Jost > Sent: Thursday, September 15, 2005 5:40 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Rcommander and simple chisquare > > In this years biostat teaching I will include Rcommander (it > indeed simplifies syntax problems that makes students > frequently miss the core statistical problems). But I could > not find how to make a simple chisquare comparison between > observed frequencies and expected frequencies (eg in genetics > where you expect phenotypic frequencies corresponding to 3:1 > in standard dominant/recessif alleles). Any idea where this > feature might be hidden? Or could it be added to Rcommander? > > Thanks, Christian. > > ps: in case I am not making myself clear, can Rcommander be > made to perform > > chisq.test(c(61,39),p=c(0.75,0.25)) > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
Dear John and Philippe, thanks for your replys, I finally found this menu, but I am somewhat at a loss how I should enter the observed frequencies. To take my example below, If I enter a one-column data.frame with the numbers 61 and 39, John's indicated menu is not highlighted. If I add a second column containing some factor, the menu is highlighted by I cannot select the first column. However, if I edit the data and declare the first column to be of type 'character' I can select it in the menu dialog and declare the expected frequencies, but the chisquare output doesn't make any sense. For the moment I cannot make any sense of that :-( Any help most appreciated, or a link to the tutorial/faq that explains such kind of problems. Thanks, Christian. At 11:31 -0400 15/09/05, John Fox wrote:>Dear Philippe, > >This does a chi-square test of independence in a contingency table, not a >chi-square goodness-of-fit test (which is done in the Rcmdr via Statistics >-> Summaries -> Frequency distribution). > >Regards, > John > >-------------------------------- >John Fox >Department of Sociology >McMaster University >Hamilton, Ontario >Canada L8S 4M4 >905-525-9140x23604 >http://socserv.mcmaster.ca/jfox >-------------------------------- > >> -----Original Message----- >> From: r-help-bounces at stat.math.ethz.ch >> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of >> Philippe Grosjean >> Sent: Thursday, September 15, 2005 7:32 AM >> To: Christian Jost >> Cc: r-help at stat.math.ethz.ch >> Subject: Re: [R] Rcommander and simple chisquare >> >> Hello, >> >> Just look at Statistics -> Contingency tables. There is an >> option for making the chi square test there. >> Best, >> >> Philippe Grosjean, >> >> ..............................................<??}))><........ >> ) ) ) ) ) > > ( ( ( ( ( Prof. Philippe Grosjean > > .............................................................. >> >> Christian Jost wrote: >> > In this years biostat teaching I will include Rcommander (it indeed >> > simplifies syntax problems that makes students frequently miss the >> > core statistical problems). But I could not find how to >> make a simple >> > chisquare comparison between observed frequencies and expected >> > frequencies (eg in genetics where you expect phenotypic frequencies >> > corresponding to 3:1 in standard dominant/recessif >> alleles). Any idea >> > where this feature might be hidden? Or could it be added to >> > Rcommander? >> > >> > Thanks, Christian. >> > >> > ps: in case I am not making myself clear, can Rcommander be made to >> > perform >> > >> >> chisq.test(c(61,39),p=c(0.75,0.25)) >> > >> > > > > ______________________________________________