search for: count3

Displaying 20 results from an estimated 20 matches for "count3".

Did you mean: count
2017 Aug 28
5
"Improvement with the R code"
...the code will not work, so can some help me with this. For and some rows of my data frame look like checkdf=data.frame(clusterNum=c(3,2,3,1,1,3,4,3,2,1,1,3,2,1,3,2) no_of_state=3 transition_matrix=matrix(NA,nrow=no_of_state, ncol=no_of_state) for(k in 1: no_of_state) { count1=0 count2=0 count3=0 #For last point no transition takes place for(j in 1: (nrow(checkdf)-1)) { if(checkdf$clusterNum[j]==k) { if(checkdf$clusterNum[j+1]==1){ count1=count1+1 } else if(checkdf$clusterNum[j+1]==2){ count2=count2+1 } else { count3=co...
2017 Aug 28
0
"Improvement with the R code"
...s. > > For and some rows of my data frame look like > > checkdf=data.frame(clusterNum=c(3,2,3,1,1,3,4,3,2,1,1,3,2,1,3,2) > no_of_state=3 > transition_matrix=matrix(NA,nrow=no_of_state, ncol=no_of_state) > for(k in 1: no_of_state) > { > count1=0 > count2=0 > count3=0 > #For last point no transition takes place > for(j in 1: (nrow(checkdf)-1)) > { > > if(checkdf$clusterNum[j]==k) > { > if(checkdf$clusterNum[j+1]==1){ > count1=count1+1 > } > else if(checkdf$clusterNum[j+1]==2){ > c...
2009 Sep 19
2
Counting observations of a combined factor
...a 6 #2 b 6 # As does a count using factor2: count2 <- as.data.frame(table(df$f2)) count2 # Var1 Freq #1 a 6 #2 b 6 # The same procedure on the second dataframe does not treat the levels of factor f3 discreetly, instead giving all possible combinations of f1 and f2. count3 <- as.data.frame(table(df2$f3)) count3 # Var1 Freq #1 a.c 6 #2 b.c 0 #3 a.d 0 #4 b.d 6 I need the results to be: # Var1 Freq #1 a 6 #2 b 6 # Any suggestions? -- Sam Player, B.Sc.(Hons.) B.A. Ph.D. Candidate, Faculty of Agriculture, Food & Natural Resources...
2017 Aug 28
0
"Improvement with the R code"
...frame(clusterNum=c(3,2,3,1,1,3,4,3,2,1,1,3,2,1,3,2) >>>> no_of_state=3 >>>> transition_matrix=matrix(NA,nrow=no_of_state, ncol=no_of_state) >>>> for(k in 1: no_of_state) >>>> { >>>> count1=0 >>>> count2=0 >>>> count3=0 >>>> #For last point no transition takes place >>>> for(j in 1: (nrow(checkdf)-1)) >>>> { >>>> >>>> if(checkdf$clusterNum[j]==k) >>>> { >>>> if(checkdf$clusterNum[j+1]==1){ >>>>...
2007 Oct 19
0
calculating power of log rank test
hie Im trying to calculate the power of the logrank test for different values of rho .I was just wandering whether the following programme would do it. any suggestions are welcome s=50 number=1 count1=0;count2=0;count3=0;count4=0;count5=0;count6=0;count7=0;count7=0; count8=0;count9=0 while(s!=0){ n=20 n1=n/2 n2=n/4 a11=1 ;a12=1.4 ;a21=16 ;a22=a12 * a21 t1<-array(1,c(n1)) t2<-array(2...
2017 Aug 28
0
"Improvement with the R code"
...>>>>> no_of_state=3 >>>>>> transition_matrix=matrix(NA,nrow=no_of_state, ncol=no_of_state) >>>>>> for(k in 1: no_of_state) >>>>>> { >>>>>> count1=0 >>>>>> count2=0 >>>>>> count3=0 >>>>>> #For last point no transition takes place >>>>>> for(j in 1: (nrow(checkdf)-1)) >>>>>> { >>>>>> >>>>>> if(checkdf$clusterNum[j]==k) >>>>>> { >>>>>>...
2008 Feb 14
0
help in simplyfiying programme
my program given below can some one make it presentable. I trying to simulate survival data and calculate the power. I think i could have done better. s=10 number=0 count1=0;count2=0;count3=0;count4=0;count5=0;count6=0;count7=0;count8=0; count9=0; count11=0;count22=0;count33=0;count44=0;count55=0;count66=0;count77=0; count88=0;count99=0; while(s!=0){ n=100 n1=n/2 n2=n/4 t1<-array(1,c(n1)) t2<-array(2,c(n1)) treatgr...
2009 Jul 09
3
Looking for recommendations for blocking hacking attempts
Hello: I have been looking into projects that will automatically restrict hacking attempts on my servers running CentOS 5. I think the two top contenders are: DenyHosts - http://denyhosts.sourceforge.net Fail2ban - http://www.fail2ban.org >From what I see, DenyHosts only blocks based on failed SSH attempts whereas Fail2ban blocks failed attempts for other access as well. The main benefit
2012 Aug 14
2
igraph: Turn multiple edges into weights
Dear all, I have some network data - about 300 vertices and several thousand edges. I am looking for a way to turn multiple edges into weights of the edges. I looked around and - surprisingly? - haven't found anything. Is there an easy way to do this? Best, Jonas [[alternative HTML version deleted]]
2010 Jun 28
2
Stacked Histogram, multiple lines for dates of news stories?
Dear colleagues, I have extracted the dates of several news stories from a newspaper data base to chart coverage trends of an issue over time. They are in a data frame that looks just like one generated by the reproducible code below. I can already generate a histogram of the dates with various intervals (months, quarters, weeks years) using hist.Date. However, there are two other
2007 Feb 20
1
Reshape (pivot) question
Hi R-users, I have a data set like this (first ten rows): id patient_id date code class eala ID1564262 1562 6.4.2006 12:00 5555 1 NA ID1564262 1562 6.4.2006 12:00 5555 1 NA ID1564264 1365 14.2.2006 14:35 5555 1 50 ID1564265 1342 7.4.2006 14:30 2222 2 50 ID1564266 1648 7.4.200614:30 2222 2 50 ID1564267 1263 10.2.2006 15:45 2222 2 10 ID1564267 1263 10.2.200615:45 3333 3 10 ID1564269 5646
2012 Sep 04
1
Producing a SMA signal when closing price is above the moving average for 3 days
I have loaded price data for GE and then calculated a 50 day simple moving average. Then I have a created a ifelse statement that produce a 1 when GE's closing price is above the simple moving average and a 0 when GE Closing price is below the 50 day simple moving average. However, what I really want to do is to produce a 1 for when the price is above the simple moving average for 3 days
2005 Oct 16
1
GROUP and GROUP_COUNT
...n => s,1,NoOp(Group Count: ${GROUP_COUNT(GOIAX)}) exten => s,n,Set(GROUP()=GOIAX) ;Set Group exten => s,n,NoOp(Group List: ${GROUP_LIST()}) exten => s,n,NoOp(Group Count: ${GROUP_COUNT()}) exten => s,n,NoOp(Group Count2: ${GROUP_COUNT(GOIAX)}) exten => s,n,NoOp(Group Count3: ${GROUP_COUNT(VBUZZER)}) exten => s,n,GotoIf($[${GROUP_COUNT(GOIAX)} > 0]?103) ;Exceeded? exten => s,n(dial),Dial(IAX2/goiax/${ARG1},999,TW) exten => s,n,NoOp(s-${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) exten => s,103,Macro(dialvoipjet,${ARG1}) [home] exten => 100...
2018 Jan 24
2
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...trs.ll > llvm/trunk/test/Analysis/Lint/noalias-byval.ll > llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll > llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll > llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll > llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll > llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll > llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll > llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll > llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll > llvm/trunk/test/CodeGen/AArch64/...
2018 Jan 24
0
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...lobalsModRef/volatile-instrs.ll llvm/trunk/test/Analysis/Lint/noalias-byval.ll llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-irtransl...
2018 Jan 25
2
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...vm/trunk/test/Analysis/Lint/noalias-byval.ll >> llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll >> llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll >> llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll >> llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll >> llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll >> llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll >> llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll >> llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll >> llvm/trunk/t...
2018 Jan 25
3
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...alysis/Lint/noalias-byval.ll >>> llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll >>> llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll >>> llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll >>> llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll >>> llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll >>> llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll >>> llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll >>> llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll >&gt...
2018 Jan 25
0
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...lobalsModRef/volatile-instrs.ll llvm/trunk/test/Analysis/Lint/noalias-byval.ll llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-irtransl...
2018 Jan 25
0
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
...lobalsModRef/volatile-instrs.ll llvm/trunk/test/Analysis/Lint/noalias-byval.ll llvm/trunk/test/Analysis/MemorySSA/basicaa-memcpy.ll llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count.ll llvm/trunk/test/Analysis/ScalarEvolution/trip-count3.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll llvm/trunk/test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll llvm/trunk/test/Bitcode/standardCIntrinsic.3.2.ll llvm/trunk/test/Bitcode/upgrade-memory-intrinsics.ll llvm/trunk/test/CodeGen/AArch64/GlobalISel/arm64-irtransl...
2010 Feb 26
5
[PATCH 0/5] renouveau: nv30/nv40 unification
This patchset applies some minor fixes to renouveau.xml and then unifies the nv30 and nv40 register definitions. nv30 and nv40 are very similar and have the same offsets for the registers they share. The major differences are: 1. Texture setup is different due to full NPOT support on nv40 2. More advanced blending/render targets on nv40 3. NV30 has fixed function registers, which NV40 lacks The