search for: npq

Displaying 6 results from an estimated 6 matches for "npq".

Did you mean: np
2004 Feb 18
0
return a list of vectors from C?
...ect; SEXP ret_val; PROTECT( pq = coerceVector( pq, REALSXP ) ); PROTECT( obs = coerceVector( obs, REALSXP ) ); pq_vect = REAL( pq ); obs_vect = REAL( obs ); /* call my functions for the results */ /* generate the output list */ PROTECT( ret_val = allocVector( VECSXP, NPQ ) ); for( i = 0; i < NPQ; i++ ) { //REAL(ret_val)[i] = XMIN[i]; //PROTECT( ret_val = allocVector( VECSXP, NPQ ) ); //SET_VECTOR_ELT( ret_val, i, 3.14159 ); //SET_VECTOR_ELT( ret_val, i, pq ); /* generate the output vector */ /* PROTECT( ret_val = allo...
2004 Feb 18
0
return a list of vectors from C?
...ect; SEXP ret_val; PROTECT( pq = coerceVector( pq, REALSXP ) ); PROTECT( obs = coerceVector( obs, REALSXP ) ); pq_vect = REAL( pq ); obs_vect = REAL( obs ); /* call my functions for the results */ /* generate the output list */ PROTECT( ret_val = allocVector( VECSXP, NPQ ) ); for( i = 0; i < NPQ; i++ ) { //REAL(ret_val)[i] = XMIN[i]; //PROTECT( ret_val = allocVector( VECSXP, NPQ ) ); //SET_VECTOR_ELT( ret_val, i, 3.14159 ); //SET_VECTOR_ELT( ret_val, i, pq ); /* generate the output vector */ /* PROTECT( ret_val = allo...
2004 Aug 17
1
survdiff
Hello, As I am quitte an ignorant user of R, excuse me for any wrongfull usage of all the terms. My question relates to the statistics behind the survdiff function in the package survival. My textbook knowledge of the logrank test tells me that if I want to compare two survival curves, I have to take the sum of the factors: (O-E)^2/E of both groups, which will give me the Chisq. If I calculate
2004 Oct 06
0
2x2 test: total confusion.
...n = total picks k = number of balls of color c picked by picker p p = prob_of_pick_of_color(pc) Significance of this particular observation = if( k < n*p ){ for (x in 0:k){ sig += dbinom(x,n,p) } } else{ for (x in k:n){ sig += dbinom(x,n,p) } } In the case that np and npq > 10, I use the normal approximation to the binomial distribution with mean np and variance np(1-p), and correction for continuity (+-0.5 depending on the direction of the test). Should I use Fishers exact test? What do I do when the numbers are very large? Here is a sample of my data... COLO...
2013 Dec 10
1
fisher.test - can I use non-integer expected values?
I seem to be able to use expected values that are decimal (e.g., 1.33) when using chisq.test but not when using fisher.test. This happens when using an array/matrix as input. Fisher.test returns: Error in sprintf(gettext(fmt, domain = domain), ...) : invalid format '%d'; use format %s for character objects. Thus, it appears fisher.test is looking for integers only. I tried putting the
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...X0?q<n0=x`(1 at J21HNfkDbAUGhZvx%|ybX8<@UAFN z_%-h#d>`-u`t%{{{Y2%z{|xXs;0wT)0Iay*e}(XC0Hk-_H{knD<$w4d at Po>){}JI& zfS)1B^Qy51X8MK;D!-vY<DEwVMgztG#%lZq at OB=Da6DiFXcGaG0I09?WQ0>dp9YwY z_zZ-Yu^TW;oo6CF3+dSi=OCPma2{Yj;tLQi1YqVmFVZ+cKW|u!^b){Q<S#?G9Iyhg z66sZd)!@VUI<En3Enpqe5okI{>yg|57AQ&QjR-d(eJ{ez2)BR at qUd}d;#&dRkcPNA zZ$}7Gb-o{b4*(uS-a~+g5q|{X4#1;;#{iFmwiB=m@!co~@pj&W_!FS*MYs>}q{h1( z02~Ay0z9R0`m|>J36ckyfJ8td$aX%X8CzAxZ-foG at rcH6d=BtD;3(i2;5gs};3NR1 z_{JAd)hUht=?vgSz*)dc8o%ikz^j1QG~))&bIxh}&u?h_<~Pv{l!YLhK-mZsDd#Q3 zp+tXv8zG92*8o...