[R] Please Help pairwise.t.test!!

2009-06-11 Thread Chun-Hao Tu
Hi R users, My question is, If I have 3 groups, A, B, C and I know mean of A =20, B=21, and C=20.5 and I also know the standard error of A =1.1, B=2.2, C=3.2. Plus, I know A has 30 observations, B has 78, C has 45. But I do not have the raw data. Can I use pairwise.t.test to conduct a

Re: [R] Help How to use a loop to do pair comparison

2009-02-24 Thread Chun-Hao Tu
Hi Patrick, Thank you for your hint. I got it works. x-1:3 result-ifelse(test=outer(X=x,Y=x,FUN=), yes=Big, + ifelse(test=outer(X=x,Y=x,FUN=), yes=Small, Equal)) result [,1][,2][,3] [1,] Equal Small Small [2,] Big Equal Small [3,] Big Big Equal

Re: [R] Help in writing my own function

2009-02-23 Thread Chun-Hao Tu
Hi Ted, I strongly recommend a book: S programming by W.N Venables and B.D Ripley ISBN: 0387-989668 It is easy to read. I love this book so much. Maybe someone has better idea. Super Chunhao Date: Mon, 23 Feb 2009 04:56:18 -0800 From: zengzhenx...@gmail.com To:

Re: [R] Filtering a data frame using a string for colum header

2009-02-22 Thread Chun-Hao Tu
Hi Tony, I GUESS my.df[-DrHorrible] does not tell R which column NUMBER would like to remove. As we know, we could use my.df[-4] and it exactly tells R which column must remvoer from your data. my.df[-4] Angel Buffy Firefly 1 7 8 9 2 8 9 9 3 6 4 10

[R] Need Help for creating a new variable

2009-02-19 Thread Chun-Hao Tu
Hi R users, I did do the research and work on for hours, but I still don't know how to solve my silly problem. I try to creat a new variable in my dataset. such as if diet==C vesl==P then trt=CP; if diet==C vesl==A then trt=CA;. The following is my code (It does not work correctly).

[R] Please Help for Augmented Prediction Plot

2009-01-27 Thread Chun-Hao Tu
Hi R users,I have a question about augmented prediction plot (?augPred). The covariate of my data set is c(0, 0.01, 0.1, 1, 10, 100, 1000) and I have fitted a nonlinear mixed effects model.I use plot(augPred(out.nlme)) to get the augmented prediction plot. However, because the scale of