Displaying 3 results from an estimated 3 matches for "0.01669".
Did you mean:
0.0169
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 =
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
2008 Mar 21
0
How to Package Extra Results to summary.lm
Dear R users,
I came up with some simple functions to give me the standard betas and
tolerance values from a predefined lm() model. I have been trying to
insert the results from these functions into the coefficients matrix in
a modified summary.lm function that I'm calling summary2 (I'd never edit
the summary.lm function directly!!). I managed to get the results
inserted into the