similar to: The two chisq.test p values differ when the contingency table is transposed! (PR#3486)

Displaying 19 results from an estimated 19 matches similar to: "The two chisq.test p values differ when the contingency table is transposed! (PR#3486)"

2003 Aug 21
0
The two chisq.test p values differ when the contingency table (PR#3896)
>>>>> dmurdoch writes: >> Date: Wed, 16 Jul 2003 01:27:25 +0200 (MET DST) >> From: shitao@ucla.edu >>> x >> [,1] [,2] >> [1,] 149 151 >> [2,] 1 8 >>> c2x<-chisq.test(x, simulate.p.value=T, B=100000)$p.value >>> for(i in (1:20)){c2x<-c(c2x,chisq.test(x, >> simulate.p.value=T,B=100000)$p.value)}
2003 Jul 15
0
Why two chisq.test p values differ when the contingency
Hi Tao: The P-values for 2x2 table are generated based on a random (discrete uniform distribution) sampling of all possible 2x2 tables, conditioning on the observed margin totals. If one of the cells is extremely small, as in your case, you get a big difference in P-values. Suppose, you changed the cell with value 1 to, say, 5 or 6, then the two P-values are nearly the same. However, I
2003 Jul 15
1
Why two chisq.test p values differ when the contingency table is transposed?
I'm using R1.7.0 runing with Win XP. Thanks, ...Tao ???????????????????????????????????????????????????????? >x [,1] [,2] [1,] 149 151 [2,] 1 8 >t(x) [,1] [,2] [1,] 149 1 [2,] 151 8 >chisq.test(x, simulate.p.value=T, B=100000) Pearson's Chi-squared test with simulated p-value (based on 1e+05 replicates) data: x X-squared = 5.2001, df =
2017 Dec 28
1
Numerical stability in chisq.test
> On 28 Dec 2017, at 13:08 , Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote: > >>>>>> Jan Motl writes: > >> The chisq.test on line 57 contains following code: >> STATISTIC <- sum(sort((x - E)^2/E, decreasing = TRUE)) > > The preceding 2 lines seem relevant: > > ## Sorting before summing may look strange, but seems to be >
2020 Jan 07
3
Calling function from non-default floating-point environment
Hi all, Implementation of #pragma STDC FENV_ACCESS raises a problem: what to do if a function is called inside a region where FP environment differs from the default? If the function expects default FP mode it may work incorrectly in such case. The C2x standard draft ( http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2454.pdf) states (7.6p4): Certain programming conventions support the intended
2019 Sep 20
0
sscanf/stroul (was: Re: [PATCH nbdkit v3 2/3] Add new retry filter.)
On Thu, Sep 19, 2019 at 11:32:47AM -0500, Eric Blake wrote: > > +static int > > +retry_config (nbdkit_next_config *next, void *nxdata, > > + const char *key, const char *value) > > +{ > > + int r; > > + > > + if (strcmp (key, "retries") == 0) { > > + if (sscanf (value, "%d", &retries) != 1 || retries < 0)
2020 Mar 05
3
Should rint and nearbyint be always constrained?
+cfe-dev as the discussion is now biased toward C standard. I'm not sure what problem you see here. In default mode, i.e. > when there is no "#pragma STDC FENV_ACCESS on" in effect, > then the compiler can always assume that the default rounding > mode is in effect. Well, if #pragma STDC FENV_ACCESS on is not in effect, that means > that the user has promised that at
2019 Sep 19
5
Re: [PATCH nbdkit v3 2/3] Add new retry filter.
On 9/19/19 10:26 AM, Richard W.M. Jones wrote: > This filter can be used to transparently reopen/retry when a plugin > fails. The connection is closed and reopened which for most plugins > causes them to attempt to reconnect to their source. > > For example if doing a long or slow SSH copy: > > nbdkit -U - ssh host=remote /var/tmp/test.iso \ > --run 'qemu-img
2023 Feb 17
2
fseek/fgetc puzzle
Hi all. I've got a bit of a puzzle and I was wondering if anyone has any insight as to what's going on. I added some code to ssh's known_hosts handling that checks if the last byte in the file is a newline, and if not, it adds one before writing the new record. I also wrote a regression test for this and in most cases this works fine. On some platforms (Solaris, OpenIndiana and
2002 Oct 08
2
Memory fault on HP-UX 11.0, 3.4p1
Is this a known issue? (ignore the pervasive MS-outlook capitalization) Ssh-agent /bin/ksh Ssh-add /root/.ssh/id_rsa Blah blah Ssh -vvv some_server date ... debug1: ssh_rsa_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: Enabling compression at level 6. debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1:
2001 Feb 14
0
ASPI problem
Having gotten WinOnCD to start (though the installer fails (*.msi file)) by copying the files and registry from a windows install, I now have an ASPI problem. I am able to erase a cdrw from within winoncd and most of winoncd works pretty much as it should (but no drag'n drop works). Writing a CD does however not work yet and it appears to be a winaspi problem: Here is part of the trace:
2005 Feb 25
1
Transposed ringing
I don't suppose anyone might know why I hear ringing transposed over itself when I place a call out via PRI? SIP to SIP is fine SIP to IAX is fine SIP to PRI is always transposed I mean sometimes you don't notice it much because it's lined up right, but other times you'll hear a really long ring (starts sounding normal, then sounds "weird" -- like two rings played at
2004 Mar 04
0
file names transposed
Hi, I'm running samba 3.0.0-15 and have noticed that when users save some files the filenames get transposed. This is usually when they use special characters like the '?' (transposed to '#'). Looking at my smb.conf I found the following settings: # testparm -v | grep -e char -e code dos charset = CP850 unix charset = UTF-8 display charset = LOCALE
2003 May 13
0
bug in promax?
I was wondering whether the following inconsistency of the promax rotation function with the results of a promax rotation using SAS should be considered a bug in the promax function of R. Any comments will be highly appreciated. The following is a loading matrix obtained from a varimax rotation in SAS: # Factor loadings after varimax rotation x <- t(array(c(0.78107, 0.35573,
2008 Oct 09
1
interpreting Shapiro-Wilks test result
Hi all, I am newbie in using R software and also doing statistical test. I want to know if my data in in normal distribution. I have 2 groups of data and I did calculate Shapiro Wilks using R software. Here is the results: Group 1: W = 0.9206, p-value = 0.01683 Group 2: W = 0.9626, p-value = 0.4694 I am not quite sure what default confidence level (CF) is used in calculating Shapiro Wilks.
2003 Nov 06
4
newbie's additional (probably to some extent OT) questions
(1) So finally, thank to your help I have this: summary(lm(x ~ 0+I(t^2))) And then I get this result: ================================================= Call: lm(formula = x ~ 0 + I(t^2)) Residuals: Min 1Q Median 3Q Max -3.332e-02 -9.362e-03 1.169e-05 1.411e-02 3.459e-02 Coefficients: Estimate Std. Error t value Pr(>|t|) I(t^2) 0.0393821
2012 Feb 03
1
ordering of factor levels in regression changes result
I was surprised to find that just changing the base level of a factor variable changed the number of significant coefficients in the solution. I was surprised at this and want to know how I should choose the order of the factors, if the order affects the result. Here is the small example. It is taken from 'The R Book', Crawley p. 365. The data is at
2011 Apr 05
6
simple save question
Hi, When I run the survfit function, I want to get the restricted mean value and the standard error also. I found out using the "print" function to do so, as shown below, print(km.fit,print.rmean=TRUE) Call: survfit(formula = Surv(diff, status) ~ 1, type = "kaplan-meier") records n.max n.start events *rmean *se(rmean) median 200.000
2003 Oct 28
5
rxfax problem
Hello, I tryed out spandsp with libtiff-3.5.7 and with Asterisk from CVS. I tryed to receive a fax on a CAPI channel. Finally I got a file with 8 byte length (/tmp/testfax.tif). How can I do next? Thanks in advance, Thomas ps: what are hardware requirements for sending/receiving faxes? -- creating pipe for PLCI=0x101 msn = 2258589 > sent ALERT_REQ PLCI = 0x101 --