[R] lme gives different results to SAS Proc Mixed

2009-06-25 Thread Metconnection
http://www.nabble.com/file/p24211204/repeated.csv repeated.csv Dear all, I'm currently trying to replicate some Proc Mixed results using lme() and have a curious result I can't explain. The dataset is a repeated measures example where patients (each on one of several treatments) are measured

Re: [R] what happened to the xlsReadWrite package

2009-06-25 Thread Dieter Menne
Andrew Yee yee at post.harvard.edu writes: A naive question: what happened to the xlsReadWrite package? http://cran.r-project.org/web/packages/xlsReadWrite/ It says that it was removed from the CRAN repository. Are there any plans for it be available again? Presumable removed because it

Re: [R] How to avoid ifelse statement converting factor to character

2009-06-25 Thread Stavros Macrakis
On Thu, Jun 25, 2009 at 12:47 PM, Craig P. Pyramecrap...@gmail.com wrote: The man page Stavros quotes states that the class attribute of the result is taken from 'test', which clearly is not the case: Actually, the behavior is documented pretty clearly: The mode of the answer will be

[R] Setting default plot size in Sweave

2009-06-25 Thread Frank E Harrell Jr
Dear Colleagues: I have used \SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE} \SweaveOpts{width=5, height=4} fig=T= plot(...) @ But the figure still has a width of 80% of the text width, the default set up by Sweave, which issues a LateX command in Sweave.sty of

Re: [R] Setting default plot size in Sweave

2009-06-25 Thread Marc Schwartz
On Jun 25, 2009, at 4:47 PM, Frank E Harrell Jr wrote: Dear Colleagues: I have used \SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE} \SweaveOpts{width=5, height=4} fig=T= plot(...) @ But the figure still has a width of 80% of the text width, the default set up by Sweave, which

Re: [R] what happened to the xlsReadWrite package

2009-06-25 Thread David Scott
Andrew Yee wrote: A naive question: what happened to the xlsReadWrite package? http://cran.r-project.org/web/packages/xlsReadWrite/ It says that it was removed from the CRAN repository. Are there any plans for it be available again? Thanks, Andrew There was a problem with proprietary code.

[R] Calculating distance between spatial points

2009-06-25 Thread Tim Clark
Dear List, I am trying to determine the speed an animal is traveling on each leg of a track. My data is in longitude and latitude, so I am using the package rgdal to convert it into a spatial points data frame and transform it to UTM. I would then like to find the difference between

[R] Placing text outside graph boundary

2009-06-25 Thread Payam Minoofar
Hello, Is possible to place a label on a multipanel figure outside the boundaries of any single one of the existing graphs in a panel? Specifically, I have a function that creates a panel with quartz() and then fills it with 6 graphs consisting of exactly the same plot for 6 different groups.

[R] A question about r anaysing microarry data!Thank you!

2009-06-25 Thread Li, Bo
Dear, Thank you for cheking the mail! I'm Bo, student in TTU, and had a problem in using r for analyzing microarry data. This is what I write in r: library(limma) argets - readTargets(file=targets.txt) *targets.txt is a tab-delimited file with columns: SlideNumber, FileName, Cy3, Cy5. The

Re: [R] Placing text outside graph boundary

2009-06-25 Thread David Winsemius
On Jun 25, 2009, at 7:51 PM, Payam Minoofar wrote: Hello, Is possible to place a label on a multipanel figure outside the boundaries of any single one of the existing graphs in a panel? Specifically, I have a function that creates a panel with quartz() and then fills it with 6 graphs

[R] pass a vector to C++

2009-06-25 Thread Ivo Shterev
Hi, Does anyone know how to pass a vector of strings, for example c(1, 2, 3) to a C++ function? Should the input argument to the C++ function be vectorstring*? Thanks a lot! Ivo __ R-help@r-project.org mailing list

Re: [R] pass a vector to C++

2009-06-25 Thread Dirk Eddelbuettel
On 25 June 2009 at 17:39, Ivo Shterev wrote: | Does anyone know how to pass a vector of strings, for example c(1, 2, | 3) to a C++ function? Should the input argument to the C++ function be | vectorstring*? For the basic mechanics of making R and C/C++ talk, see the 'R Extensions' manual that

Re: [R] apply on xts

2009-06-25 Thread R_help Help
Thanks David for reading for me. Anyhow, is there better way to do looping on xts objects than using apply? Thanks again. adschai On Thu, Jun 25, 2009 at 12:39 AM, David Winsemius dwinsem...@comcast.netwrote: On Jun 24, 2009, at 9:26 PM, R_help Help wrote: Hi, I do not understand why

[R] code that will use two data sets which differ in size.

2009-06-25 Thread Arnold Akem
Hi all, This is a really basic question but I can't figure it out. I am trying to write a piece of code that will  use two datasets, z and m.. This code is meant to assign the mean of selected values in dataset m to a new column z$c in datset z but the rows and columns of the two data sets

[R] select number of lags in ADF.test

2009-06-25 Thread Hongwei Dong
Hi, all, According to the ADF.test help,Singf removes the non-significant lags at the 10% level of significance until all the selected lags are significant. However, when I use singf, it still give me the lags that are not significant at 10% level. Anyone knows why? Thanks. Harry

[R] panel.text and saving to pdf

2009-06-25 Thread Willem Vervoort
Dear all, I am not sure what I am doing wrong, but I have some unexplained behaviour when saving a lattice graph including text to a pdf file. The text seems to move around. It must have something to do with the way coordinates are set in devices other than jpg. Any suggestions would be

[R] predicted values after fitting gamma2 function

2009-06-25 Thread Steven Matthew Anderson
Question: after fitting a gamma function to some data, how do I get predicted values? I'm a SAS programmer, I new R, and am having problems getting my brain to function with the concept of object as class The following is specifics of what I am doing: I'm trying to determine the pdf

<    1   2