SPPS is offering a chi square exact test for one dimensional data with small sample size (<6). What is the comparable function in R? Kind Regards Knut
A quick google search produces multiple results. Good luck. :) ~Nicole Ford Ph.D. Student Graduate Assistant/ Instructor Department of Government and International Affairs University of South Florida office: SOC 012M Sent from my iPhone On Mar 6, 2013, at 6:30 AM, Knut Krueger <rh at knut-krueger.de> wrote:> SPPS is offering a chi square exact test for one dimensional data with small sample size (<6). > > What is the comparable function in R? > > Kind Regards Knut > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Am 06.03.2013 14:27, schrieb Nicole Ford: Dear Nicole, my be you are wondering about, but I know Google an I am using google before I am asking here. If you are more familiar with googl,e please help me to find the search term where I can find the R function for chi square exact usable for one column test for a sample size less than 6 You are welcome to use this search: http://www.giyf.com/chi%20square%20exact Thanks in advane Knut> A quick google search produces multiple results. Good luck. :) > > ~Nicole Ford > Ph.D. Student > Graduate Assistant/ Instructor > Department of Government and International Affairs > University of South Florida > office: SOC 012M > > > Sent from my iPhone > > On Mar 6, 2013, at 6:30 AM, Knut Krueger <rh at knut-krueger.de> wrote: > >> SPPS is offering a chi square exact test for one dimensional data with small sample size (<6). >> >> What is the comparable function in R? >> >> Kind Regards Knut >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code.
Le mercredi 06 mars 2013 ? 18:03 +0100, Knut Krueger a ?crit :> Am 06.03.2013 14:27, schrieb Nicole Ford: > Dear Nicole, > my be you are wondering about, but I know Google an I am using google > before I am asking here. > > If you are more familiar with googl,e please help me to find the search > term where I can find > the R function for > chi square exact usable for one column test for a sample size less than 6 > > You are welcome to use this search: > > http://www.giyf.com/chi%20square%20exact > > > Thanks in advane KnutSee ?fisher.test. Regards> > A quick google search produces multiple results. Good luck. :) > > > > ~Nicole Ford > > Ph.D. Student > > Graduate Assistant/ Instructor > > Department of Government and International Affairs > > University of South Florida > > office: SOC 012M > > > > > > Sent from my iPhone > > > > On Mar 6, 2013, at 6:30 AM, Knut Krueger <rh at knut-krueger.de> wrote: > > > >> SPPS is offering a chi square exact test for one dimensional data with small sample size (<6). > >> > >> What is the comparable function in R? > >> > >> Kind Regards Knut > >> > >> ______________________________________________ > >> R-help at r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-help > >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130306/054c446e/attachment.pl>
Le mercredi 06 mars 2013 ? 18:38 +0100, Knut Krueger a ?crit :> Am 06.03.2013 18:29, schrieb Milan Bouchet-Valat: > > Le mercredi 06 mars 2013 ? 18:03 +0100, Knut Krueger a ?crit : > >> Am 06.03.2013 14:27, schrieb Nicole Ford: > >> Dear Nicole, > >> my be you are wondering about, but I know Google an I am using google > >> before I am asking here. > >> > >> If you are more familiar with googl,e please help me to find the search > >> term where I can find > >> the R function for > >> chi square exact usable for one column test for a sample size less than 6 > >> > >> You are welcome to use this search: > >> > >> http://www.giyf.com/chi%20square%20exact > >> > >> > >> Thanks in advane Knut > > See ?fisher.test. > fisher test needs two columns I need a one column exact test > |x| > > either a two-dimensional contingency table in matrix form, or a factor > object. > > |y| > > a factor object; ignored if |x| is a matrix.Sorry, I missed that part. Can you tell us more about the test you do in SPSS? Are you testing the adequacy of a given distribution to the data? In short: what do you test? Is that test documented somewhere? I found this document, but there does not seem to be such a test there: http://www.sussex.ac.uk/its/pdfs/SPSS_Exact_Tests_20.pdf Regards> > Knut > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Actually, the http://www.sussex.ac.uk/its/pdfs/SPSS_Exact_Tests_20.pdf file indicates that for small samples and a one-way chi square test, SPSS uses a multinomial distribution to tabulate the distribution of chi square for a given N, K, and probability of membership in each group. In package stats, the dmultinom() function can be used to accomplish this. The last example on the help page shows the steps. ---------------------------------------------- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Milan Bouchet-Valat > Sent: Wednesday, March 06, 2013 1:17 PM > To: Knut Krueger > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] chi square exact test > > Le mercredi 06 mars 2013 ? 18:38 +0100, Knut Krueger a ?crit : > > Am 06.03.2013 18:29, schrieb Milan Bouchet-Valat: > > > Le mercredi 06 mars 2013 ? 18:03 +0100, Knut Krueger a ?crit : > > >> Am 06.03.2013 14:27, schrieb Nicole Ford: > > >> Dear Nicole, > > >> my be you are wondering about, but I know Google an I am using > google > > >> before I am asking here. > > >> > > >> If you are more familiar with googl,e please help me to find the > search > > >> term where I can find > > >> the R function for > > >> chi square exact usable for one column test for a sample size less > than 6 > > >> > > >> You are welcome to use this search: > > >> > > >> http://www.giyf.com/chi%20square%20exact > > >> > > >> > > >> Thanks in advane Knut > > > See ?fisher.test. > > fisher test needs two columns I need a one column exact test > > |x| > > > > either a two-dimensional contingency table in matrix form, or a > factor > > object. > > > > |y| > > > > a factor object; ignored if |x| is a matrix. > Sorry, I missed that part. Can you tell us more about the test you do > in > SPSS? Are you testing the adequacy of a given distribution to the data? > In short: what do you test? > > Is that test documented somewhere? I found this document, but there > does > not seem to be such a test there: > http://www.sussex.ac.uk/its/pdfs/SPSS_Exact_Tests_20.pdf > > > Regards > > > > > Knut > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > > and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.
Am 06.03.2013 22:20, schrieb David L Carlson:> Actually, the http://www.sussex.ac.uk/its/pdfs/SPSS_Exact_Tests_20.pdf file indicates that for small samples and a one-way chi square test, SPSS uses a multinomial distribution to tabulate the distribution of chi square for a given N, K, and probability of membership in each group. In package stats, the dmultinom() function can be used to accomplish this. The last example on the help page shows the steps. > > ---------------------------------------------- > David L Carlson > Associate Professor of Anthropology > Texas A&M University > College Station, TX 77843-4352Than you very much. This was exactly (incuding the sppss pdf) for what I was looking for. Maybe its helpful for others here are the IBM PDF files: ftp://public.dhe.ibm.com/software/analytics/spss/documentation/statistics/20.0/en/client/Manuals/ Knut