search for: yb1

Displaying 4 results from an estimated 4 matches for "yb1".

Did you mean: b1
2003 Mar 04
4
writing several command line in R console
...example I write a function, so far i have to write the all code inside on the same line wich may become obscure as the function is more and more complex. I would like to do like in the example of the manuels: >twosam <- function(y1, y2) { n1 <- length(y1); n2 <- length(y2) yb1 <- mean(y1); yb2 <- mean(y2) s1 <- var(y1); s2 <- var(y2) s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) tst <- (yb1 - yb2)/sqrt(s2*(1/n1 + 1/n2)) tst } all I can do is something like that: >twosam <- function(y1, y2) { n1 <- length(y1); n2 <- len...
2005 Jul 15
4
Can't get sample function from "An Introduction to R" to work
...I hit the return key after the penultimate line. I've re-checked and re-typed the code many times to no avail. I wasn't able to find this issue using search options, either. Any help is GREATLY appreciated! > twosam<-function(y1, y2) { + n1<-length(y1);n2 <-length(y2) + yb1<-mean(y1); yb2<-mean(y2) + s1<-var(y1);s2<-var(y2) + s<-((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) + tst<-(yb1-yb2)/sqrt(s*(1/n1+1/n2)) Error: syntax error David [[alternative text/enriched version deleted]]
2012 Oct 23
3
frequency
Hello, I have a data as follow: ID    Visit xa1 xa2 yb1 yc23 yb33   I want to look at frequency of visit for ID and create a new column as response .  For example my response would be 2 for x and 3 for y. I think I need to write a loop, but I don't know how. I really appreciate your help. Thanks a lot. Best,Farnoosh Sheikhi [[alternative HTML versi...
2008 Aug 09
2
xy plot in version 2.7.1 for Mac (PR#12520)
...L cfnis3JkQ2qO1ZoRF9HO9yQl8TrB+DKtVnDJZBEaSrdYgC1CRwVer/cY0DEq7SvtGz0qu8v4ny19 jpaMoqWPeqxWnfnUl5mQAC6ZbEJDNotFYKEbaPK7NnuMSqbNgfQJcyXhVzi60gEpgCTtrG+ebNzM 70q4K+mNREOcKcHO/YOmpl2XWZFdO6ghrSGzJnuRaVFCy6DFaYsym7LX8FXGlQm3Jm023m/aZXvD foqfNJ5MeD8pa2DinXE+l3vsqDhGcbY4HrfDmdxJSBlfIrQKPmM47ch5fYuI+VxvH9Ayb19s6mzu MnymjBcPAwQCg2wpV48pTE9PSbNxo3vIMM8gW/qYwquTbR73EJOxbtGJh1eGl5cvPPHIe2t+cuCp tWufemrd2uvm8hNMZtf8srG7XzvV399/5Jn7X2AP9v/0wkW8+y/8dMEmwuExW/tITsfaeVkgtnIJ mXafWBC7g5gYrtcCgQ13x1uTLEk58fHD03Iccs5wh2G41W212DMZpSgIOq9TTB6x1MLdUyCW8liB KJQyobTU1mfrS5lQ0Pea7bWUCbZXvYUCsMa+qwzWdKvfuskq+5NvSF6ZLdWkL7...