Displaying 20 results from an estimated 1000 matches similar to: "Yates' correction for continuity in chisq.test (PR#8265)"
2005 Dec 20
2
2 x 2 chisq.test (PR#8415)
Full_Name: nobody
Version: 2.2.0
OS: any
Submission from: (NULL) (219.66.34.183)
2 x 2 table, such as
> x
[,1] [,2]
[1,] 10 12
[2,] 11 13
> chisq.test(x)
Pearson's Chi-squared test with Yates'
continuity correction
data: x
X-squared = 0.0732, df = 1, p-value = 0.7868
but, X-squared = 0.0732 is over corrected.
when abs(a*d-b*c) <= sum(a,b,c,d), chisq.value
1999 Nov 14
1
Yates analysis
Dear all:
I need to perform a Yates analysis of a 2-level full factorial experiment design.
My question is: how i can do it with R, or best, what's the package who i need to use for this purpose.
Thanks.
,__ __
/\ /| | |
| | __ ,_ __, _ | | |
| | / \_/ | / | |/ | | |
\_|/\__/ |_/\_/|/|__/ |
2005 Feb 13
1
Bug in cor function (PR#7689)
I can't hardly accept the result of cor function with
pairwize.colplete.obs or complete.obs
insert print statements in cor function,
+ if (method != "pearson") {
+ Rank <- function(u) if (is.matrix(u))
+ apply(u, 2, rank, na.last = "keep")
+ else rank(u, na.last = "keep")
+ x <- Rank(x)
+
2005 Jun 22
1
chisq test and fisher exact test
Hi,
I have a text mining project and currently I am working on feature
generation/selection part.
My plan is selecting a set of words or word combinations which have
better discriminant capability than other words in telling the group
id's (2 classes in this case) for a dataset which has 2,000,000
documents.
One approach is using "contrast-set association rule mining" while the
2008 Nov 20
1
About continuity correction option in the mantelhaen.test function.
Hello,
I was using the mantelhaen.test function (2x2 J tables for
conditional independence testing). I noticed that the option for the
continuity correction (correction=T or correction=F) sometimes made a
difference while sometimes it did give the same results regardless of
correction=T or correction=F.
Does the continuity correction apply only in certain cases or in
certain strata with some
2002 Jul 30
4
chisq.test, basic question
The cells are interpreted as counts, so by scaling you're analyzing a
different experiment (one with fewer observations). So the chi-squared value
will change (the terms (O-E)^2/E in the statistic scale linearly ignoring
rounding and "Yates' continuity correction").
The chisq.test on the original data is a test of association. Conventionally
you decide ahead of time on a
2001 Dec 18
4
chi-squared test
I don't quite understand the difference between the two methods for
performing a chi-squared test on contingency tables: summary(table())
and chisq.test()
They may different results. E.g.:
aa <- gl(2, 10)
bb <- as.factor(c(1,2,2,2,1,2,1,2,2,2,1,2,2,2,1,1,1,2,1,1))
aa <- c(aa, aa)
bb <- c(bb, bb)
table(aa, bb)
summary(table(aa, bb))
chisq.test(aa, bb)
Could somebody give me
2012 Dec 01
4
Getting all possible contingency tables
Hello all,
Let say I have 2-way contingency table:
Tab <- matrix(c(8, 10, 12, 6), nr = 2)
and the Chi-squared test could not reject the independence:
> chisq.test(Tab)
Pearson's Chi-squared test with Yates' continuity correction
data: Tab
X-squared = 1.0125, df = 1, p-value = 0.3143
However I want to get all possible contingency tables under this
independence
2002 May 23
2
Find if there is independence
Hello
I have the matrix
a<-matrix(c(2,1,0,1,2,2,1,5,7,2,5,12),nrow=6)
a
[,1] [,2]
[1,] 2 1
[2,] 1 5
[3,] 0 7
[4,] 1 2
[5,] 2 5
[6,] 2 12
Suppose that in the first row we have 3 men of England, 2 with hair, and 1
no
In the second we have 6 italian men, 1 with hair and 5 no ...
I want to find if there is a dependence between men withouth hair and
2011 Apr 22
1
Create 2x2 table from summary data and run chi square test.
R 2.12
windows 7
I am summary data that I would like to make into a 2x2 table representing counts positive vs. negative counts:
28/289 20/276
My table should look something like the following:
group1 group2
Positive 28 20
Negative 289 276
How can a (1) create the 2x2 table
(2) run a chi square test on the table?
I have tried the following code, but I
2005 Oct 18
6
Subsetting a list
Colleagues,
I have created a list in the following manner:
TEST <- list(c("A1", "A2"), c("B1", "B2"), c("C1", "C2"))
I now want to delete one element from the list, e.g., the third. The
command
TEST[[3]]
yields (as expected):
[1] "C1" "C2"
The command
TEST[[-3]]
yields:
Error:
2005 Dec 14
2
Problem with dir.create (R2.2.0 Windows XP 2002 SP 2)
I've run into a problem with dir.create on R2.2.0 Windows XP 2002 SP 2.
setwd("d:/")
print(dir.create("d:\\otis-sim\\rdata", recursive=T))
print(dir.create("d:\\otis-sim\\", recursive=T))
Both return false and fail to create the directories.
setwd("c:/")
print(dir.create("d:\\otis-sim\\rdata", recursive=T))
Returns true and succesfully
2011 Dec 19
2
On Corrections for Chi-Sq Goodness of Fit Test
TOPIC
My question regards the philosophy behind how R implements corrections to chi-square statistical tests. At least in recent versions (I'm using 2.13.1 (2011-07-08) on OSX 10.6.8.), the chisq.test function applies the Yates continuity correction for 2 by 2 contingency tables. But when used as a goodness of fit test (GoF, aka likelihood ratio test), chisq.test does not appear to implement
2005 Nov 11
3
no package 'Matrix' at the repositories
Yesterday, I installed R2.2.0 for Windows [Version 2.2.0 (2005-10-06
r35749)]. Unfortunately, 'install.packages("Matrix")' produced the
following message:
Warning in download.packages(pkgs, destdir = tmpd, available =
available, :
no package 'Matrix' at the repositories
I installed lme4, maps, mapproj, CircStats, scatterplot3d, gregmisc,
Hmisc without
2010 Jun 01
2
Mid-P value for a chi-squared test
Can anyone tell me how to calculate a mid-p value for a chi-squared test
in R?
Many thanks,
Andrew Wilson
2010 Apr 04
4
Quality vs. Bitrate vs. Complexity
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> writes:
> Quality and bit-rate are different ways of specifying exactly the same
> thing. Complexity is orthogonal.
That clears it up - thanks. Is this in the manual?
--Randy
>
> Jean-Marc
>
> On 2010-04-03 08:28, Randy Yates wrote:
>> Jean-Marc: I know you're seeing these - how about a response?
>>
2010 Apr 03
2
Quality vs. Bitrate vs. Complexity
Jean-Marc: I know you're seeing these - how about a response?
--Randy
Randy Yates <yates at ieee.org> writes:
> If I understand these terms correctly, you cannot specify simultaneously
> all three, e.g., high quality, low bitrate, and low complexity.
>
> It seems that specifying any two implies the third. For example,
> specifying a high quality and low bitrate will
2010 Apr 03
2
Default bitrate
Randy Yates <yates at ieee.org> writes:
> The speexenc.c example has a "--bitrate n" command line option, but I
> can't find in the Speex Codec manual where the default bitrate is
> defined.
>
> What is the default bitrate for 16 kHz mono?
Also here are a few other bitrate-related questions:
1. Does average bitrate mode ==> variable bitrate mode?
2.
2010 Mar 29
2
Speex on TI DSP 5505
Saju Palayur <saju_pa at hotmail.com> writes:
> Hi
>
>
>
> We have ported the Narrow band 8 Khz Speex encoder and decoder on to TI DSP 5505
>
>
>
> To compress 20ms of 16 bit audio sampled at 8Khz it takes 4.2ms.
>
> Is there any optimizations I can do to make it run faster.
The first thing to do would be to profile the code (I assume you're
using
2010 Mar 30
2
Speex on TI DSP 5505
Saju Palayur <saju_pa at hotmail.com> writes:
> Hi
>
>
>
> When we run the profiler these 3 functions take more than 8500 cycles.
>
>
>
> split_cb_search_shape_sign_N1() 22782
> pitch_search_3tap() 19208
> lpc_to_lsp() 16007
>
> So can I configure these in a different way so it takes less cycles.
I am not familiar with the code, so I can't