Re: [R] issue with Rcmdr

2020-01-09 Thread Norm Matloff
> Message: 14 > Date: Wed, 8 Jan 2020 09:59:56 -0800 > From: Bert Gunter > To: Norm Matloff > Cc: R-help > Subject: Re: [R] issue with Rcmdr > ... and even more generally, is generally misleading. ;-) > (search "problems with R^2" or similar for why). &

Re: [R] issue with Rcmdr

2020-01-08 Thread Norm Matloff
Glad to hear it now works for you. But speaking more generally, note that R-squared is the squared correlation between the predicted Y and actual Y values. E.g. lmout <- lm(y ~ x) print(cor(lmout$fitted.values,y)^2) One can use this in any regression setting, even machine learning methods. N

[R] book on parallel programming

2014-02-01 Thread Norm Matloff
ather.cs.ucdavis.edu/paralleldatasci.pdf Your comments and suggestions are welcome, in fact very much hoped-for. I took this approach when I wrote my R programming book, and found it very helpful to me, and of much value to people who downloaded it. Hopefully the same will be true

[R] novel graphics package

2013-09-18 Thread Norm Matloff
several examples with pictures. Norm Matloff __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Split the work for many cores

2012-05-12 Thread Norm Matloff
One replier worried about doing multiple operations on the graphics device in parallel. To avoid this, try saving the output of your plot function instead of immediately displaying it (if the function allows this). Then display everything when you're all done. Norm Matloff To: Alaios Su

Re: [R] Discrete Event Simulation problem

2012-02-13 Thread Norm Matloff
Unfortunately, I don't have time to read your code, but if it is any help, I have general discrete event simulation code as an example in my book. I've posted the code at http://heather.cs.ucdavis.edu/DES.R Norm Matloff __ R-help@r-p

Re: [R] new R debugging tool

2011-10-30 Thread Norm Matloff
Rainer wrote: * On Thu, Oct 20, 2011 at 12:22 AM, Norm Matloff * wrote: * * > * > I've developed a new R debugging tool, debugR, available at * > http://heather.cs.ucdavis.edu/debugR.html * > * > This basically replaces my edtdbg, which I will no longer be * > s

[R] new R debugging tool

2011-10-19 Thread Norm Matloff
eedback is encouraged, of course. Norm Matloff __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] running R commands asynchronously

2011-06-12 Thread Norm Matloff
art your asynchronous process in B, writing to memory shared by A and B. The code at B would look like: run task B, writing results to shared variable X[1] when done The code at A would look like: do various unrelated tasks while (X[1] == 0) ; use X[1] Norm

Re: [R] conversion of matrix into list

2011-06-03 Thread Norm Matloff
owcol=1) or columns mat2lst <- function(m,rowcol=1) { if (rowcol == 1) m <- t(m) dm <- as.data.frame(m) as.list(dm) } This seems to be faster than the split() approach for columns, but slower for rows. Apparently the transpose operation makes the difference. (You could try inves

Re: [R] GUI's and R background processes

2010-12-16 Thread Norm Matloff
also find my UseR! presentation on Rdsm to be helpful, user2010.org/slides/Matloff.pdf You could do the same thing, though less directly and I believe less conveniently, using some of the packages Louis mentioned, as well as bigmemory. Norm Matloff __ R

Re: [R] Significance of the difference between two correlation coefficients

2010-12-02 Thread Norm Matloff
n.) A good general alternative is the bootstrap, implemented in R in the boot package. Norm Matloff __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] binary tree construction in R

2010-10-06 Thread Norm Matloff
On Tue, Oct 05, 2010 at 06:13:04PM -0400, Mike Marchywka wrote: > I guess it wouldn't be too far a field to discuss benefits > of data stucture exploration in R vs cpp or java- Especially > for something like this where you may want to time it in a multithreaded > setting- you can always instrume

Re: [R] binary tree construction in R

2010-10-05 Thread Norm Matloff
n R) and this is not > helping. > > best, > > MK Not sure what you mean by a "threaded" binary tree, but I am enclosing code below. It is from my forthcoming book on software development in R. Two caveats: 1. It hasn't been checked yet. There may be bugs, ineffi

Re: [R] Why is vector assignment in R recreates the entire vector ?

2010-09-02 Thread Norm Matloff
m/r-de...@r-project.org/msg20089.html Some of the replies not only explain the process, but list lines in the source code where this takes place, enabling a closer look at how/when duplication occurs. Norm Matloff __ R-help@r-project.org mailing list

Re: [R] Question regarding significance of a covariate in a coxme survival

2010-08-31 Thread Norm Matloff
In 2010-08-30, C. Peng wrote: > What statistical measure(s) tend to be answering ALL(?) question of > practical interest? None. All I had said was that significance testing doesn't really answer any questions of practical interest. Unfortunately, that doesn't mean there's something to answer a

Re: [R] Question regarding significance of a covariate in a coxme survival

2010-08-29 Thread Norm Matloff
ed. I can expand on this, with references, if there is interest. Norm Matloff Professor of Computer Science (formerly Statistics) University of California, Davis __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

Re: [R] ANNOUNCE--Rdsm package, a threads-like environment for R

2010-03-11 Thread Norm Matloff
Guo-Hao Huang wrote: > Date: Thu, 11 Mar 2010 14:55:35 +0800 > From: "Guo-Hao Huang" > To: "Norm Matloff" > Cc: r-help@r-project.org > Subject: Re: [R] ANNOUNCE--Rdsm package, a threads-like environment > for R > > I am interested in Rdsm pac

[R] ANNOUNCE--Rdsm package, a threads-like environment for R

2010-03-10 Thread Norm Matloff
; typically, though, they should provide similar performance in such contexts. By the way, I have a prototype of an infrastructure package to facilitate using bigmemory as a parallel R engine. Norm Matloff University of California, Davis __ R-help@r

[R] ANNOUNCE: edtdbg debugging tool

2010-01-22 Thread Norm Matloff
My edtdbg debugging tool is now on CRAN, at http://cran.r-project.org/web/packages/edtdbg/index.html I've added a few new commands since the last time I announced the package here. I'll enclose command list at the end of this message. Currently the package is implemented for Vim. I have a vol

[R] new, much improved version of edtdbg debugging tool

2009-12-22 Thread Norm Matloff
matloff/R/edtdbg/edtdbg.zip I'd like to thank Jakson and Duncan M. for some useful e-mail exchanges. Now that this "digression" is done, I can get back to finishing my Rdsm parallel R package and uploading it to CRAN. (Not sure whether edtdbg is appropriate for CRAN?) Norm Matloff

Re: [R] Announce: edtdbg, integrating R's debug() with your text editor

2009-12-07 Thread Norm Matloff
ent, and a couple of people have made suggestions as well. I'll post an enhanced version in a day or so. Norm > Date: Sun, 6 Dec 2009 23:39:06 -0800 > From: Norm Matloff > Subject: [R] Announce: edtdbg, integrating R's debug() with your text > editor > To: r-help@r-p

[R] Announce: edtdbg, integrating R's debug() with your text editor

2009-12-06 Thread Norm Matloff
y will upload to CRAN at some point, possibly after an ESS guru contributes the ESS code. :-) A note on my Rdsm package for parallel R: The new, much improved version is just about ready. I'll be uploading Rdsm to CRAN very soon. Norm Matloff __

Re: [R] Book on R programming

2009-08-31 Thread Norm Matloff
he Dept. of Computer Science. My CS research work has often been statistical in nature. I'm an R user going way back to the "blue book" days of S. Norm Matloff __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] Rdsm, a DSM package for parallel R programming

2009-07-08 Thread Norm Matloff
that paradigm's greater flexibility. I happen to be of the shared-memory school. Given the popularity of OpenMP for C/C++/FORTRAN, I believe Rdsm will be of interest to many for R. Indeed, in the next few months, I will be extending Rdsm with functions that give it the "look and feel&qu

[R] another type of parallel programming for R

2009-07-01 Thread Norm Matloff
;look and feel" of OpenMP. I have an an alpha version of Rdsm ready, and will be releasing it in the next day or two (on my own Web page for now, not yet on CRAN) in an announcement here. User feedback will be much appreciated. Norm Matloff UC Davis ___

Re: [R] queue simulation

2008-12-22 Thread Norm Matloff
e advantage of R's graphics and statistics facilities. SimPy is at http://simpy.sourceforge.net/ Also, I have a tutorial on it at http://heather.cs.ucdavis.edu/~matloff/simcourse.html Norm Matloff University of California, Davis __ R-help@r-project.org