search for: obs4

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

Did you mean: obs
2006 Mar 28
0
ansari.test (one tailed)
...xr<-sort(obs2[,1]) ci<-obs2[,2] cr<-ci[order(obs2[,1])] n<-length(obs2[,1]) if(n%%2==0) {rAB<-c(1:(n/2),(n/2):1)} else{rAB<-c(1:((n-1)/2), (n+1)/2, ((n-1)/2):1)} obs3<-data.frame(rAB,xr,cr) ties<-as.numeric(names(which((table(obs2[,1])>1)==TRUE))) # extrait les xi r?p?t?s obs4<-obs3 for(i in ties){obs4$rAB[(which(obs3$xr==i))]<-mean(obs3$rAB[(which(obs3$xr==i))])} obs4 classe1<- split(obs2[,1], obs2[,2])$sud classe2<- split(obs2[,1], obs2[,2])$ouest ansari.test(classe1, classe2, alternative = "greater") # AB statistic : AB1.calc<-sum(subset(obs...
2010 Jan 18
1
problem of data manipulation
...0 5 n 2 1 15/02/2000 6 n 2 1 23/02/2000 I want to select the observations whose difference of "var4" is less than 7 for the cases with the same values of var1,var2 andvar3. The obervations have the same var1, var2 and var3 are, part1 (obs2 and obs3) and part2 (obs4,obs5, and obs6). For obs2 and obs3, their date difference is less than 7, so we donot need to delete any of them. For obs4,obs5, and obs6,we can see that obs6 should be deleted becuase its date is over 7 dyas longer than obs4. So the final dataset should obs1,obs2,obs3,obs4, and obs5. I hav...
2010 Apr 08
0
selected observations based several variables
...5 1 1.1 2 2008-12-01 A 1 5 1.3 1.8 2007-05-06 C 5 2 1.3 1.8 2007-05-20 N 2 #obs1 and obs3 have same x and y; Their date difference is 5, so we will select the earlist obs1 But we notice that its prior value is N, while another is A, so we also need to replace N using A. #obs2,obs4 and obs5 have same x and y; Obs4 and obs5 has a date difference 4<=8days, so earlies obs 5 will be selected, but also we need to replace A using C because of the priority.If the prior value for obs4 is N, then we donot need to replace the A of obs5 because A is prior to N. I hope i have made...
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example. I modified a little to fit my real data, I got an error massage. Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : Group length is 0 but data length > 0 On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] < ml-node+s789695n4657196h87@n4.nabble.com> wrote: > Hi, > Try this: >
2012 Jun 24
0
nouveau _BIOS method
...GA NVHA A 0570: 4d 44 41 20 44 49 44 36 20 44 49 44 37 20 44 49 MDA DID6 DID7 DI 0580: 44 38 20 45 42 41 53 20 43 50 53 50 20 45 45 43 D8 EBAS CPSP EEC 0590: 50 20 45 56 43 50 20 58 42 41 53 20 4f 42 53 31 P EVCP XBAS OBS1 05a0: 20 4f 42 53 32 20 4f 42 53 33 20 4f 42 53 34 20 OBS2 OBS3 OBS4 05b0: 4f 42 53 35 20 4f 42 53 36 20 4f 42 53 37 20 4f OBS5 OBS6 OBS7 O 05c0: 42 53 38 20 00 48 05 41 54 4d 43 08 50 54 4d 43 BS8 .H.ATMC.PTMC 05d0: 08 41 54 52 41 08 50 54 52 41 08 50 4e 48 4d 20 .ATRA.PTRA.PNHM 05e0: 54 42 41 42 20 54 42 41 48 20 52 54 49 50 08 54 TBAB TBAH RTIP.T...