[R] R and unix tool 'screen'

2004-01-28 Thread Giampiero Salvi
I have problems running R with screen. For those who don't know, screen is a unix tool that is quite handy if you want to leave a process (that outputs to tty) running when you logout, and then recover the session later on. It works like this: 1) run 'screen': you get a normal prompt as if you

Re: [R] R and unix tool 'screen'

2004-01-28 Thread Giampiero Salvi
Hi, On Wed, 28 Jan 2004, Prof Brian Ripley wrote: C-a is not a `signal' but a normal key sequence, and one used by readline. However, Sorry for the wrong terminology. I tried it again and it works now (even with readline, on RH9.0). The only way I can explain the problem I got yesterday is

[R] distance between two matrices

2004-01-28 Thread Sundar Dorai-Raj
Hi all, Say I have a matrix A with dimension m x 2 and matrix B with dimension n x 2. I would like to find the row in A that is closest to the each row in B. Here's an example (using a loop): set.seed(1) A - matrix(runif(12), 6, 2) # 6 x 2 B - matrix(runif(6), 3, 2) # 3 x 2 m -

Re: [R] R and unix tool 'screen'

2004-01-28 Thread Fredrik Karlsson
Hej Giampiero! Odd. Using Screen version 3.09.11 and R-1.8.0 on a Debian system, R does not trap C-a. I can fire up R in a screen, create a new screen with C-a c and even detach/reattach the screen session. The terminal emulator is xterm. Perhaps you are using a terminal that traps the C-a?

[R] Install R connector Server

2004-01-28 Thread Laurent Houdusse
Hi all! I use the R-(D)COM Interface in a Visual Basic program. I added a refrerence in my project to StatConnectorSrv 1.1 Type Library (StatConnectorSrv.exe) How to deploy my program? I added StatConnectorSrv.exe but it's not enought... What are the dependences? Thanks Laurent Houdusse

[R] dates function

2004-01-28 Thread Massimiliano Tripoli
Hi all, I have problems with years of dates using chron package. I don't understand why R by this istruction: dates(01/02/29,out.format=d/m/year) [1] 02/Jan/2029 dates(01/02/30,out.format=d/m/year) [1] 02/Jan/1930 reads 29 as 2029 and 30 as 1930. How could I change to read 00 to 05 like 2000

[R] Julian dates

2004-01-28 Thread Massimiliano Tripoli
Hi all, I have problems with years of dates using chron package. I don't understand why R by this istruction: dates(01/02/29,out.format=d/m/year) [1] 02/Jan/2029 dates(01/02/30,out.format=d/m/year) [1] 02/Jan/1930 reads 29 as 2029 and 30 as 1930. How could I change to read 00 to 05 like 2000

[R] GRAPH

2004-01-28 Thread Marcos
How do to make a plot() and contour() in the same Graph sheet? Marcos __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] modified bonferroni correction

2004-01-28 Thread Sean Davis
Jason See ?p.adjust. Sean - Original Message - From: Jason Dunsmore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 4:50 PM Subject: [R] modified bonferroni correction hi, is there a good way of doing a modified (less stringent) bonferroni correction in R?

Re: [R] distance between two matrices

2004-01-28 Thread Roger Bivand
On Tue, 27 Jan 2004, Sundar Dorai-Raj wrote: Hi all, Say I have a matrix A with dimension m x 2 and matrix B with dimension n x 2. I would like to find the row in A that is closest to the each row in B. Here's an example (using a loop): set.seed(1) A - matrix(runif(12), 6, 2) # 6 x 2

Re: [R] Julian dates

2004-01-28 Thread Stefano Calza
I guess there's a bug in chron as you cannot pass the argument cut.off to year.expand. Adding ,... in chron arguments and along the code ,... to convert.dates does the trick. HIH, Stefano On Wed, Jan 28, 2004 at 11:50:11AM +0100, Massimiliano Tripoli wrote: Hi all, I have problems with

Re: [R] distance between two matrices

2004-01-28 Thread Sundar Dorai-Raj
Thanks to Prof. Ripley, Jens, Roger, and Sean. knn1 is exactly what I'm looking for. Thanks again, Sundar Prof Brian Ripley wrote: Sounds like knn classification. See function knn1 in package class. knn(A, B, 1:nrow(A)) gives the same answers as your loop code, and is just a carefully tuned

RE: [R] GRAPH

2004-01-28 Thread Liaw, Andy
If you want to overlay contour on an existing plot, use the add=TRUE option in contour(). HTH, Andy From: Marcos How do to make a plot() and contour() in the same Graph sheet? Marcos -- Notice: This e-mail

RE: [R] distance between two matrices

2004-01-28 Thread Hüsing, Johannes
Hi all, Say I have a matrix A with dimension m x 2 and matrix B with dimension n x 2. I would like to find the row in A that is closest to the each row in B. Here's an example (using a loop): set.seed(1) A - matrix(runif(12), 6, 2) # 6 x 2 B - matrix(runif(6), 3, 2) # 3 x 2 m -

[R] new email address

2004-01-28 Thread kputnam
Thank you for your email message. My work address has changed -- Katherine M. Putnam, Ph.D. Boston VA Medical Center National Center for PTSD 150 So. Huntington Ave. Boston, MA 02130 voice 617 232-9500 ext. 4267 fax 617 278-4501 [EMAIL PROTECTED] If this is a personal matter, please write

RE: [R] distance between two matrices

2004-01-28 Thread Jens Oehlschlägel
Sundar, Have a look at knn1 from package class. As I understand what you want is as.integer( knn1(train=A, test=B, cl=1:nrow(A)) ) Best regards Jens Oehlschlägel Say I have a matrix A with dimension m x 2 and matrix B with dimension n x 2. I would like to find the row in A that is

Re: [R] dates function

2004-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2004, Massimiliano Tripoli wrote: I have problems with years of dates using chron package. I don't understand why R by this istruction: It's not R, it is package chron. R has its own date-time functions. dates(01/02/29,out.format=d/m/year) [1] 02/Jan/2029

Re: [R] Julian Dates

2004-01-28 Thread Petr Pikal
Hallo On 28 Jan 2004 at 13:13, Massimiliano Tripoli wrote: Hi all, I have problems with dates format using chron package. I don't understand why R by this istruction: dates(01/02/29,out.format=d/m/year) [1] 02/Jan/2029 Well, the result probably depends on your system and locale

RE: [R] distance between two matrices

2004-01-28 Thread Hüsing, Johannes
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] On Wed, 28 Jan 2004, Hüsing, Johannes wrote: ?apply for more info. You'll want to know about apply if you want to avoid loops (which is a good approach). Unfortunately apply() is a wrapper for a for() loop, so will not help much (if at

RE: [R] distance between two matrices

2004-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2004, Hüsing, Johannes wrote: Hi all, Say I have a matrix A with dimension m x 2 and matrix B with dimension n x 2. I would like to find the row in A that is closest to the each row in B. Here's an example (using a loop): set.seed(1) A - matrix(runif(12), 6, 2)

[R] Re: Help with Hmisc/Design installation in R-aqua (apple)

2004-01-28 Thread Bema Bonsu
Thanks, all, for your responses to my earlier email about installing the Hmisc and Design libraries created by Harrell FE Jr. This was the body of my email requesting help: I have tried, unsuccessfully, to install the Hmisc and Design libraries (Harrell FE Jr) in R-aqua (Apple). These libraries

RE: [R] distance between two matrices

2004-01-28 Thread Liaw, Andy
You can try and see if knn1() in the `class' package (part of the VR bundle) can handle the job in one shot. If not, just do it in chunks of B. For your example: id - 1:nrow(A) knn1(A, B, id) [1] 3 2 3 Levels: 1 2 3 4 5 6 (I believe it returns factor, but that can easily be converted back to

RE: [R] Julian dates

2004-01-28 Thread Gabor Grothendieck
Prof. Riley has already answered this but I thought I would add a bit more detail. # define a function chron.year.expand.0 with a different cutoff. # You can choose other cutoffs too but here we have chosen 0. chron.year.expand.0 - function(x) year.expand(x,cut=0) # run chron -- we have not

Re: [R] Re: Help with Hmisc/Design installation in R-aqua (apple)

2004-01-28 Thread Thomas Lumley
On Wed, 28 Jan 2004, Bema Bonsu wrote: Thanks thomas and pj. As requested I am attaching the generated error message when I attempt to install the Hmisc and Design packages. What do I do next? * Installing *source* package 'Hmisc' ... ** libs g77 -fno-common -g -O2 -c cidxcn.f -o

RE: [R] Julian dates

2004-01-28 Thread Ted Harding
On 28-Jan-04 Massimiliano Tripoli wrote: Hi all, I have problems with years of dates using chron package. I don't understand why R by this istruction: dates(01/02/29,out.format=d/m/year) [1] 02/Jan/2029 dates(01/02/30,out.format=d/m/year) [1] 02/Jan/1930 reads 29 as 2029 and 30 as

RE: [R] distance between two matrices

2004-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2004, Hüsing, Johannes wrote: From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] On Wed, 28 Jan 2004, Hüsing, Johannes wrote: ?apply for more info. You'll want to know about apply if you want to avoid loops (which is a good approach). Unfortunately apply() is a

RE: [R] Julian dates

2004-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote: origin(dates(01/02/29,out.format=d/m/year)) month day year 1 1 1970 So why does Massimiliano's example behave as though the origin were 01/01/1930? It doesn't. It behaves as if he wrote 01/02/2029 and he intended 01/02/1929 (but

[R] multiple plots..again

2004-01-28 Thread Simon Melov
Hi, I realize many posts have been written about this, but I have gone through the archives and cannot find an example/solution particular to my problem. I have two Df's as follows Df-1 Time V1 V2 V3...V100 9 0.5 1.8 -0.3 .. 14 2 -0.4 0.003.. 19 -4 3 0.1.. Df-2 is the same but has different

RE: [R] multiple plots..again

2004-01-28 Thread Andy Bunn
Have you tried layout? layout(matrix(1:10, 5, 2, byrow = TRUE)) for(i in 1:10){ plot(rnorm(100), type = l, col = red, main = paste(Your Variable Number, i, sep = )) lines(runif(100), col = blue) } Does this get you started? -A __ [EMAIL

[R] how to set R_GSCMD

2004-01-28 Thread Haim Bar
I have R installed on a windows box, and I need to get a better resolution. I understand I need to set R_GSCMD. Which file has to contain this variable? Thanks! Haim __ [EMAIL PROTECTED] mailing list

[R] Large data sets and memory management in R.

2004-01-28 Thread gerald . jean
Hello R-users, First my settings: R-1.8.1, compiled as a 64bit application for a Solaris 5.8, 64 bit. The OS has 8Gb of RAM available and I am the sole user of the machine, hence pretty much all the 8Gb are available to R. I am pretty new to R and I am having a hard time to work with large data

[R] Read In and Output Postscript file

2004-01-28 Thread Brad Holmes
Hi, I am only a few months old at R and I have encountered an interesting issue. Would it be possible to read in a pre-existing postscript file, and output it as is through R? I have five plots, and I am placing them in a layout that is 2 X 3. I was hoping to insert the pre-existing

Re: [R] how to set R_GSCMD

2004-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2004, Haim Bar wrote: I have R installed on a windows box, and I need to get a better resolution. A better resolution of what, please? I understand I need to set R_GSCMD. Which file has to contain this variable? That appears to refer to the bitmap device, and the help says

[R] How to generate a report with graphics and tables?

2004-01-28 Thread Olaf Bürger
Hello R-Users, I have some data sets which change on a daily bases. So far I have imported these sets into R, done all my evaluations resulting in a couple of plots, charts and tables of numbers which I copypasted via clipboard into Powerpoint. The procedure is always the same and I wonder,

Re: [R] Large data sets and memory management in R.

2004-01-28 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: library(package = statmod, pos = 2, lib.loc = /home/jeg002/R-1.8.1/lib/R/R_LIBS) qc.B3.tweedie - glm(formula = pp20B3 ~ ageveh + anpol + categveh + champion + cie + dossiera + faq13c + faq5a + kmaff + kmprom + nbvt

RE: [R] How to generate a report with graphics and tables?

2004-01-28 Thread Liaw, Andy
If you don't mind pdf report generated from LaTeX, Sweave would probably work nicely for you. See the two articles on it in R News, which you can find on the R web site. One other possibility is to use the R2HTML package (and maybe the xtable package, too) to write the `report' in HTML. HTH,

Re: [R] How to generate a report with graphics and tables?

2004-01-28 Thread Frank E Harrell Jr
On Wed, 28 Jan 2004 22:01:05 +0100 Olaf Bürger [EMAIL PROTECTED] wrote: Hello R-Users, I have some data sets which change on a daily bases. So far I have imported these sets into R, done all my evaluations resulting in a couple of plots, charts and tables of numbers which I copypasted

Re: [R] How to generate a report with graphics and tables?

2004-01-28 Thread Paulo Justiniano Ribeiro Jr
You may want to have a look at Sweave at http://www.ci.tuwien.ac.at/~leisch/Sweave/ and R-NEWS P.J. On Wed, 28 Jan 2004, Olaf Bürger wrote: Hello R-Users, I have some data sets which change on a daily bases. So far I have imported these sets into R, done all my evaluations resulting in a

Re: [R] How to generate a report with graphics and tables?

2004-01-28 Thread Marc Schwartz
On Wed, 2004-01-28 at 15:01, Olaf Brger wrote: Hello R-Users, I have some data sets which change on a daily bases. So far I have imported these sets into R, done all my evaluations resulting in a couple of plots, charts and tables of numbers which I copypasted via clipboard into

[R] Math Expression and Variable Value in Title

2004-01-28 Thread Wolfgang Viechtbauer
Hello All, I am trying to put a math expression into a plot title and at the same time, I want a value in the title to depend on a variable that I set earlier. Simple Example: n - 20 plot(0, 0) title(expression(paste(n[i], = , n))) Obviously, I want n_i = 20. How can I get that? Thanks in

Re: [R] Read In and Output Postscript file

2004-01-28 Thread Tony Plate
One way to approach this from within R would be to use gs to convert the preexisting postscript file to some sort of bitmap, and then read that into R and plot it. Another way to do this, outside of R, would be to use the capabilities of gs to combine multiple ps files (for example, I often

Re: [R] Read In and Output Postscript file

2004-01-28 Thread Marc Schwartz
On Wed, 2004-01-28 at 14:19, Brad Holmes wrote: Hi, I am only a few months old at R and I have encountered an interesting issue. Would it be possible to read in a pre-existing postscript file, and output it as is through R? I have five plots, and I am placing them in a layout that is

Re: [R] how to set R_GSCMD

2004-01-28 Thread Haim Bar
Thanks! - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Haim Bar [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 4:03 PM Subject: Re: [R] how to set R_GSCMD On Wed, 28 Jan 2004, Haim Bar wrote: I have R installed on a windows box, and I

[R] MailMarshal has detected a Virus in your message

2004-01-28 Thread infrateam
MailMarshal (an automated content monitoring gateway) has stopped the following message: Message: B0001ad57e.0001.mml From:[EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Because it believes the message contains a virus. The virus scanning software used was: NetIQ

[R] Confirmatory Factor Analysis in R? SEM?

2004-01-28 Thread Arnab mukherji
Hi Has anyone used R to conduct confirmatory factor analysis? This email pertains to use of SEM. For context consider an example: the basic idea is that there are a bunch of observables variables (say study habbits, amount of time reading in the bus, doing homework, helping other do

Re: [R] Math Expression and Variable Value in Title

2004-01-28 Thread Roger D. Peng
Use substitute() n - 20 plot(0, 0, main = substitute(paste(n[i], = , k), list(k = n))) -roger Wolfgang Viechtbauer wrote: Hello All, I am trying to put a math expression into a plot title and at the same time, I want a value in the title to depend on a variable that I set earlier. Simple

[R]Running R remotely in Windows Environment?

2004-01-28 Thread Jim Porzak
We are considering setting up a fast, RAM loaded machine as an R-server to handle the big problems not suitable for individual desktops and, also, to process ad hoc analysis requests via our portal. We are 99% a Windows shop, so first choice is a windows server. We'll use (D)COM for the portal

[R] Calculating/understanding variance-covariance matrix of logistic regression (lrm $var)

2004-01-28 Thread Karl Knoblick
Hallo! I want to understand / recalculate what is done to get the CI of the logistic regression evaluated with lrm. As far as I came back, my problem is the variance-covariance matrix fit$var of the fit (fit-lrm(...), fit$var). Here what I found and where I stucked: -

Re: [R] How to generate a report with graphics and tables?

2004-01-28 Thread Gabor Grothendieck
On Windows you could use a macro recorder/playback program to automate your session. There is a free script interpreter called autoit at: http://www.hiddensoft.com/AutoIt/ that can handle about 90 different commands. This may seem complex but you may be able to use it without much of a

[R] Finding Sweave.sty and other problems

2004-01-28 Thread Murray Jorgensen
Hi, I've just tried to run example-3 from Friedrich Leish. I'm using R 1.8.1 and MiKTeX 2.2 on Windows XP. I go === library(tools) Sweave(example-3.Snw) Writing to file example-3.tex Processing code chunks ... 1 : term hide 2 : echo term verbatim 3 : term tex 4 : term verbatim eps pdf You

Re: [R] Confirmatory Factor Analysis in R? SEM?

2004-01-28 Thread John Fox
Dear Arnab, You can indeed fit confirmatory factor analysis models with the sem package, and ?sem includes an example of a second-order CFI (though I'm not sure I see the point of factor-analyzing uncorrelated variables). In factor analysis, moreover, the observed variables are functions of

[R] Warning: john@msiresearch.com - User unknown!

2004-01-28 Thread MDaemon
[EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments ---BeginMessage--- (~ Lj^-ltU0? z(VkNf0 iWRx|zf6Vr\{i.?Jnyu 0HWP?}e|o` W :?o$!#By T\8~4Kb]Y?%WW?1%?!|W?3?9ppn:.*0!?v_K5] O`}08r j4Q ?)geN?xWl|