Re: [R] differences between survival models between STATA and R

2012-07-09 Thread jthetzel
Be sure you reply or forward your message to me to the r-help listhost. I might not have time to review it tonight, while others might. Jeremy On Mon, Jul 9, 2012 at 2:38 PM, JPF [via R] < ml-node+s789695n4635888...@n4.nabble.com> wrote: > Please, find an example with a data set here. > > The d

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread jthetzel
UCLA's Advanced Technical Services' Statistical Computing website often has very good resources for comparing analyses between R, Stata, and SAS ( http://www.ats.ucla.edu/stat ). For accelerated failure time models, I believe that it has some examples for Stata ( http://www.ats.ucla.edu/stat/stata/

Re: [R] Installing package QRMlib

2012-02-29 Thread jthetzel
QRMlib built without errors on my WIndows machine. Here's the resulting zip binary: http://commondatastorage.googleapis.com/jthetzel-public/QRMlib_1.4.5.1.zip Will that install on your machine? Jeremy DT54321 wrote > > I wouldn't see myself as an experienced R user soI wou

Re: [R] Installing package QRMlib

2012-02-28 Thread jthetzel
I installed fEcofin, fUtilities, fCalenday, and fSeries from the CRAN archives and was able to install and load QRMlib. Which errors does "R CMD check QRMlib_1.4.5.1.tar.gz" show? DT54321 wrote > > According to the QRMlib package pdf, > > http://www.mirrorservice.org/sites/lib.stat.cmu.edu/R

Re: [R] Installing package QRMlib

2012-02-28 Thread jthetzel
Next, you should check C:/Program Files/R/R-2.14.1/bin/QRMlib.Rcheck/00install.out for details on the error. DT54321 wrote > > In command prompt, I direct to the following directory: > > C:\Program Files\R\R-2.14.1\bin > > Now I enter: > > R CMD check "my_local_folder\QRMlib_1.4.5.1.tar.gz" >

Re: [R] Installing package QRMlib

2012-02-28 Thread jthetzel
I think you'll need to install fEcofin from CRAN, and then the following .tar.gz files from the CRAN archives: fUtilities fCalenday fSeries And then try installing the QRMlib .tar.gz. If you're still having problems, try: "C:/Program Files/R/R-2.14.0/bin/x64/R" CMD check "QRMlib_1.4.5.1.tar.gz"

Re: [R] superscript

2011-02-01 Thread jthetzel
Correction, I forgot the caret: legend(210, 110, bquote(r^2 == .(format(summary(regression)$adj.r.squared,digits=3 -- View this message in context: http://r.789695.n4.nabble.com/superscript-tp3252881p3252924.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] superscript

2011-02-01 Thread jthetzel
Would the following work? legend(210, 110, bquote(r2 == .(format(summary(regression)$adj.r.squared,digits=3 See ?plotmath and ?bquote Jeremy Jeremy Hetzel Boston University -- View this message in context: http://r.789695.n4.nabble.com/superscript-tp3252881p3252921.html Sent from the R h

Re: [R] How to change size of xlab inplot?

2011-02-01 Thread jthetzel
Rainer, Take a look at this thread: http://www.mail-archive.com/r-help@r-project.org/msg64936.html Jeremy Jeremy Hetzel Boston University -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-size-of-xlab-inplot-tp3250762p3250960.html Sent from the R help mailing list

Re: [R] R-/Text-editor for Windows?

2011-01-30 Thread jthetzel
Sascha, I second Tobias' recommendation of Eclipse with StatET. Like Emacs, Eclipse is platform independent and easily extensible to essentially any other language, as well as revision control like git and svn. I used to use Tinn-R, but haven't been back seen switching to Eclipse. Jeremy Jere

Re: [R] Reading sas7bdat files into R

2010-12-30 Thread jthetzel
Sashi, There is also a command line utility for sas7bdat files called dsread (http://www.oview.co.uk/dsread/). I've never used it, but it looks good. Built for Windows, but should run under Linux with Wine. Jeremy Jeremy T. Hetzel Boston University -- View this message in context: http://r.

Re: [R] Importing Sas files to R

2010-12-30 Thread jthetzel
Reka, If you do not have SAS available, there is also a free program provided by SAS called the SAS System Viewer, which will export sas7bdata files to csv. N.b. that I've heard it can be buggy if any character variables contain unmatched quotes. I've also read in a previous post (http://r.7896

Re: [R] Extract subset of rows

2010-12-17 Thread jthetzel
Hi John, I'd recommend looking into ?merge. Jeremy Jeremy T. Hetzel Boston University -- View this message in context: http://r.789695.n4.nabble.com/Extract-subset-of-rows-tp3092669p3092700.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Running R on a server

2010-10-11 Thread jthetzel
Sachin, I apologize if I'm over-simplifying your question. I mostly run R on an Ubuntu server via a Windows laptop. I log in to the remote server via SSH (via PuTTY on Windows), and then open an interactive R session through the usual ways (typing 'R' at the Linux command line). When creating

Re: [R] Question about assigning values in a matrix, conditional on column first row; how to do the loop.

2010-10-05 Thread jthetzel
Paula, Just for fun, another way: ## Create 10 by 10 example matrix set.seed(100) a <- matrix(sample(c(0,1,2),100, replace=T), nrow=10, ncol=10) a[1,] <- sample(c(0.25,0.5,0.75),ncol(a), replace=T) ## Use apply to substitiute matrix values by row b <- apply(a, 1, function(x) { row <- x row[

Re: [R] Tinn R

2010-10-03 Thread jthetzel
Paths. Cheers, Jeremy Jeremy Hetzel Boston University 1) Change permissions for the C:\Users\$USER\AppData\Roaming\Tinn-R directory. Windows 7 makes this directory read-only by default, but Tinn-R expects to be able to write to it, causing errors. For me, I went to C:\Users\jthetzel\AppData\Ro