search for: n_b

Displaying 5 results from an estimated 5 matches for "n_b".

Did you mean: n_
2007 Dec 31
0
Optimize jackknife code
Hi, I have the following jackknife code which is much slower than my colleagues C code. Yet I like R very much and wonder how R experts would optimize this. I think that the for (i in 1:N_B) part is bad because Rprof() said sum() is called very often but I have no idea how to optimize it. #O <- read.table("foo.dat")$V1 O <- runif(100000); k=100 # size of block to delete # the jacknife block has size N-k total_sum=sum(O); for (k in 1:2) { N_B = length(O...
2011 Nov 04
1
Counting number of common elements between the rows of two different matrices
Hello I'm trying to solve this problem without using a for loop but I have so far failed to find a solution. I have two matrices of K columns each, e.g. (K=5), and with numbers of row N_A and N_B respectively A = (1 5 3 8 15; 2 7 20 11 13; 12 19 20 21 43) B = (2 6 30 8 16; 3 8 19 11 13) (the actual matrices have hundreds of thousands of entry, that's why I'm keen to avoid "for" loops) And what I need to do is to apply a function which counts the number of commo...
2002 Dec 10
3
clogit and general conditional logistic regression
...f data which arise in survival/proportional hazard applications. My question is: is 'clogit' capable of a general conditional logistic analysis? E.g. given a set of data on binomial experiments with Y=1 r_i times out of n_i, associated with levels A_i and B_i of factors A and B at N_A and N_B levels, would clogit(Y ~ A+B, method=c(Exact")) generate something sensible containing the results of a standard exact conditional logistic regression of Y on A and B? With thanks, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Ha...
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...$vad_75&zgT%(%Vgde}P(JT4wsUBM;IE}eC zoy<2RC?zT#bAe(C?x=x^hoJEop8v4VddTLV6&=5nQ8hS6n@(k3AUz9X*7^mj`bI2U z;4WwyEtRrT#E8qtA0~8B)1Le(vd5?vh9e~R2ab~s58ftO%GiI0sD`tRv;nzwvBgIU zRi+ZWs641$tC(|F(Bx#VEMiMa_(E6{p1%&2 at sb(2x%hriZ2LAzZ69h8X;EsCYSCg5 zYr%5G^frlO{}I%I^T2W7TJRSPDe4&VkM>OH*~n_b;H3Ev^Wyy=!~GlL>Q`IUkEY4Q zoBwHjncxI)Jy;fCTz%gXc}JQ-1`b(bKF&ii${J^@rli|nk5j?_>}sSklP`Lx32>g9 zySN1(Ds_xy>T3b!jubAHpY at 8?2IP+d9pPEEe)T75NZ#rRBnC2G7Cop>zP;1jivXO* z=W4Q0<V?1uIqLdlq-Zj#Yn`zrX+~r at X!wC1g;)y5Y2tHd`;pBs3a3Avkbe9w_=m@= z8pQe^l7Xd=yCZ(n!+?=&luVuRyK6KoLY#fwofC?H...