[R] avas

2004-01-20 Thread frat zdemir
Hi, I wanted to make a transformation with avas and ace but saw a message couldn't find function avas what are the possibble reasons of this case? It may be a basic question but unfortunately I am very new in R. Thanks for your helps Regards [[alternative HTML version deleted]]

[R] lattice: adding text between grouped panels?

2004-01-20 Thread Wolfram Fischer
How one can add a text (e.g. the labels of an axis) in a space between grouped panels which was created by using the argument ``between''? Example: data(barley) dotplot(variety ~ yield | site * year, data=barley, between=list(x=c( 0, 0, 6 )) How to add labels for

Re: [R] avas

2004-01-20 Thread Frank E Harrell Jr
On Tue, 20 Jan 2004 11:49:34 +0200 fýrat özdemir [EMAIL PROTECTED] wrote: Hi, I wanted to make a transformation with avas and ace but saw a message couldn't find function avas what are the possibble reasons of this case? It may be a basic question but unfortunately I am very new in R.

[R] Roracle pre-compile error?

2004-01-20 Thread Christian Schulz
Hi, trying ROracle failed? I'm using Oracle.8.1.7 which is on another machine. With Tora i get access to the database what i wish to get with R-Project, too. What does the message mean? Oracle pre-compiler proc not in /opt/oracle/OraHome1/bin/proc you may not be able to compile ROracle I'm

[R] question

2004-01-20 Thread Wassim Kamoum
Je suis étudiant en DEA et j'élabore un mémoir dans lequel j'applique le modèle STARMA , Pouvez vous ,s'il vous plait, m'envoyer l'algorithme de calcul ces STACF et STPACF de ce model afin de débuter mon estimation de ce modéle sur R Merci d'avance. -

Re: [R] Roracle pre-compile error?

2004-01-20 Thread Michael Mader
Hi as the Error message tells you: proc (the Pro*C precompiler of Oracle) is not in the $PATH variable. Perhaps you try to compile on a Oracle Client box w/o the complete development client? Regards Michael Christian Schulz wrote: Hi, trying ROracle failed? I'm using Oracle.8.1.7 which

Re: [R] avas

2004-01-20 Thread Petr Pikal
Hallo On 20 Jan 2004 at 11:49, frat zdemir wrote: Hi, I wanted to make a transformation with avas and ace but saw a message couldn't find function avas what are the possibble reasons of this case? Most probably you did not installed proper library. I assume it is acepack. Go

[R] evaluation of discriminant functions+multivariate homoscedasticity

2004-01-20 Thread Janke ten Holt
Hello, I am switching from SPSS-Windows to R-Linux. My university is very SPSS-oriented so maybe that's the cause of my problems. I am a beginner in R and my assignments are SPSS-oriented, so I hope I don't annoy anyone with my questions... Right now I've got 2 problems: -I have to evaluate

Re: [R] Weird problem with trying to change a variable SOLVED

2004-01-20 Thread Peter Flom
Thanks to all who responded. In particular, thanks to Jim Lemon who pointed out that just because mode(MSA) returned ''numeric', doesn't mean MSA isn't a factor. It turned out, indeed, to be a factor. Peter __ [EMAIL PROTECTED] mailing list

[R] random forest question

2004-01-20 Thread Christian Hennig
Hi, here are three results of random forest (version 4.0-1). The results seem to be more or less the same which is strange because I changed the classwt. I hoped that for example classwt=c(0.45,0.1,0.45) would result in fewer cases classified as class 2. Did I understand something wrong?

RE: [R] random forest question

2004-01-20 Thread Liaw, Andy
The classwt are used in the gini index for splitting nodes. What we have found (about two years ago) is that that option does not affect the prediction as much as one would expect. I suspect the problem is because the trees are grown to maximum sizes and not pruned back. This is why I

[R] Sytem Requirements for R for Win XP

2004-01-20 Thread Derk Bemeleit
Dear R-Tech Support Team, I was just browsing on your web page and I am curious about R's system requirements. How many MB RAM and what processor speed would you recommend for Win XP if I want to load QuantArray Excel output files of appr. 16 MB each? Thank you very much in advance, Derk

RE: [R] Sytem Requirements for R for Win XP

2004-01-20 Thread Henrik Bengtsson
Hi, I have a WinXP Pro 1.8GHz 512Mb Pentium 4 laptop machine and do microarray analysis on it with R. However, it would do better with more RAM. So, if you're buying a new system then go for 1024Mb. Of course, this depends totally on what kind of analysis you do and how many arrays you work with

Re: [R] Compiling R, cannot open vars.mk

2004-01-20 Thread Arne Gjuvsland
Using GNU make solved the first problem, but now I got into trouble with a shared library lapack.so. I found a thread in the mailing list concerning this problem where it was suggested that I try dyn.load from R or the ldd on lapack.so I did that. The results are pasted under. Arne ./configure

[R] Loading packages at startup

2004-01-20 Thread imap
Hi, I use the Windows R GUI. I frequently use (or have my students use) foreign and survival packages. I would like to make them part of the basic start-up package set (like base, ctest, etc.) using something short of recompiling a special Windows version of R. Is this possible? I examined

Re: [R] analytic derivative of complex function

2004-01-20 Thread Timur Elzhov
Hello, Robin. Thanks for your reply. -- On Fri, Jan 16, 2004 at 03:39:48PM +, Robin Hankin wrote: the differential of sin(z) is cos(z), over the whole complex plane. If you have a function in terms of its real and imaginary components, and you know that the function is differentiable,

Re: [R] Compiling R, cannot open vars.mk

2004-01-20 Thread Prof Brian Ripley
On Tue, 20 Jan 2004, Arne Gjuvsland wrote: Using GNU make solved the first problem, but now I got into trouble with a shared library lapack.so. I found a thread in the mailing list concerning this problem where it was suggested that I try dyn.load from R or the ldd on lapack.so I did that.

Re: [R] Loading packages at startup

2004-01-20 Thread Roger D. Peng
Take a look at ?Startup. You can create a Rprofile file which loads these packages from the start. -roger imap wrote: Hi, I use the Windows R GUI. I frequently use (or have my students use) foreign and survival packages. I would like to make them part of the basic start-up package set (like

Re: [R] Loading packages at startup

2004-01-20 Thread Prof Brian Ripley
On Tue, 20 Jan 2004, imap wrote: Hi, I use the Windows R GUI. I frequently use (or have my students use) foreign and survival packages. I would like to make them part of the basic start-up package set (like base, ctest, etc.) using something short of recompiling a special Windows version

[R] matrix exponential: M^0

2004-01-20 Thread Federico Calboli
Dear All, I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix: D-rbind(c(0,0,0),c(0,0,0),c(0,0,0)) D-as.matrix(D) D [,1] [,2] [,3] [1,]000 [2,]000 [3,]000 D^0 [,1] [,2] [,3] [1,]1

RE: [R] Loading packages at startup

2004-01-20 Thread Simon Fear
See Introduction to R section 10.8 and Appendix B.2. I searched for `.First` to find it, but then, I knew what to look for ... searching for `startup` would find it too. -Original Message- From: imap [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 15:16 To: [EMAIL PROTECTED]

[R] avas and ace

2004-01-20 Thread frat zdemir
Hi, Does any one know how we can decide on the correct transformation in (avas and ace) after having drawn the graphs y,g(y) x ,s(x) and g(y) ,s(x) . Is it possible by only looking at patterns the graphs follow for example when y ,g(y) shows a logaritmic pattern can we say that log

RE: [R] Loading packages at startup

2004-01-20 Thread antonio rodriguez
Hi, go to your C:/R/rw1080/etc directory and edit the Rprofile file adding (e.g.): library(foreign) library(survival) cheers, antonio rodriguez -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de imap Enviado el: martes, 20 de enero de 2004 16:16 Para:

Re: [R] matrix exponential: M^0

2004-01-20 Thread Thomas Lumley
On Tue, 20 Jan 2004, Federico Calboli wrote: Dear All, I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix: Because ^ is not the matrix power. It's the elementwise power. -thomas D-rbind(c(0,0,0),c(0,0,0),c(0,0,0))

[R] Changing workspace from within an R session

2004-01-20 Thread gerald . jean
Hello R-users, is it possible to navigate from one workspace to the other from within an R session or does one has to close R and restart it from the directory where resides the desired workspace? For example from Splus I have this little function, see at the end, which I used all the time to

Re: [R] matrix exponential: M^0

2004-01-20 Thread Giovanni Petris
elementary operations, like taking a power, act elementwise on vectors and matrices. You may use a spectral decomposition to compute powers of a matrix - or a for loop if you are interested in small integer powers. HTH Giovanni -- __ [

Re: [R] matrix exponential: M^0

2004-01-20 Thread Barry Rowlingson
Federico Calboli wrote: Dear All, I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix: Because ^0 gives you the zero-th power of the _elements_ of the matrix, not the matrix itself. A matrix of 0^0 is all 1s. Similary, '*'

Re: [R] matrix exponential: M^0

2004-01-20 Thread Peter Dalgaard
Federico Calboli [EMAIL PROTECTED] writes: Dear All, I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix: Because arithmetic on a matrix works element-wise. M^2 is not equal to M %*% M either (but is equal to M*M). (R doesn't

Re: [R] matrix exponential: M^0

2004-01-20 Thread Stephane DRAY
Hello, be careful D^0 is not the zeroeth power of a matrix. It is a term power :D[i,j]^0=1 To obtain the power of a matrix, you can use a decomposition such as svd: X = U D V' the n-th power of X is X = U D^n V' svd1=svd(D) Apower0=svd1$u%*%diag(svd1$d^0)%*%t(svd1$v) At 11:40 20/01/2004,

RE: [R] matrix exponential: M^0

2004-01-20 Thread Trenkler, Dietrich
-Original Message- From: Federico Calboli Sent: Tuesday, January 20, 2004 5:40 PM To: r-help Subject: [R] matrix exponential: M^0 I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix:

Re: [R] avas and ace

2004-01-20 Thread Jonathan Baron
On 01/20/04 17:34, frat zdemir wrote: Hi, Does any one know how we can decide on the correct transformation in (avas and ace) after having drawn the graphs y,g(y) x ,s(x) and g(y) ,s(x) . Is it possible by only looking at patterns the graphs follow for example when y ,g(y) shows a logaritmic

Re: [R] avas and ace

2004-01-20 Thread Frank E Harrell Jr
On Tue, 20 Jan 2004 17:34:24 +0200 fýrat özdemir [EMAIL PROTECTED] wrote: Hi, Does any one know how we can decide on the correct transformation in (avas and ace) after having drawn the graphs y,g(y) x ,s(x) and g(y) ,s(x) . Is it possible by only looking at patterns the graphs follow for

Re: [R] matrix exponential: M^0

2004-01-20 Thread John Fox
Dear Federico, The common arithmetic operators such as ^ operate on the elements of matrices (or vectors or arrays). Similarly, * gives the element-wise product and not the matrix product. I hope that this helps, John At 04:40 PM 1/20/2004 +, Federico Calboli wrote: Dear All, I would

Re: [R] matrix exponential: M^0

2004-01-20 Thread Duncan Murdoch
On 20 Jan 2004 16:40:07 +, Federico Calboli [EMAIL PROTECTED] wrote : Dear All, I would like to ask why the zeroeth power of a matrix gives me a matrix of ones rather than the identity matrix: R doesn't have a power operator that knows it's working on a matrix. M^x raises each entry of M

Re: [R] Changing workspace from within an R session

2004-01-20 Thread Frank E Harrell Jr
On Tue, 20 Jan 2004 10:51:36 -0500 [EMAIL PROTECTED] wrote: Hello R-users, is it possible to navigate from one workspace to the other from within an R session or does one has to close R and restart it from the directory where resides the desired workspace? Gérald Jean

Re: [R] lattice: adding text between grouped panels?

2004-01-20 Thread Deepayan Sarkar
On Tuesday 20 January 2004 04:14, Wolfram Fischer wrote: How one can add a text (e.g. the labels of an axis) in a space between grouped panels which was created by using the argument ``between''? Example: data(barley) dotplot(variety ~ yield | site * year, data=barley,

[R] Restoring an S object that was data-dumped

2004-01-20 Thread Ravi Varadhan
Hi: In R, how can I data.restore an object that was data.dumped in Splus (I am not sure of the exact version, but probably Splus5)? When I use data.restore, I get the following error message (I am using R 1.7.0 on Windows) data.restore(n2.suicide) Error in ReadSdump(TRUE, ) : S mode

[R] Re: Need help on how to list functions from a loaded package...

2004-01-20 Thread [EMAIL PROTECTED]
To All How does one get a list of functions from a loaded package so that one can then get the appropriate help for each of the functions. Currently my method is based on a lot of trial-and-error. Here's an example of what I mean... From this forum I learn that an interesting package called

Re: [R] Changing workspace from within an R session

2004-01-20 Thread Prof Brian Ripley
Attaching at position 1 does not work in R, as you have found. That is in ?attach, and in the FAQ. As the FAQ says, using save()d objects (read-only) can do quite a lot of this. You could also save the workspace, clear it, and load another saved image ... but it is probably easier to restart

[R] programming cycle: file managment

2004-01-20 Thread Pedro Cruz
Hi, the programming cycle in R is (1) create somefile.R in some ascii editor (2) use source(somefile.R) to read it. (3) change the file and repeat step (2). Or there's a better way ? Which section of which manual explains that ? Pedro Cruz __ [EMAIL

Re: [R] Re: Need help on how to list functions from a loaded package...

2004-01-20 Thread Sean Davis
help(package=PKGNAME) library(help=PKGNAME) where PKGNAME is the name of an installed library. help(package=multtest) library(help=multtest) Note that you can also use: help.start() to get html help (assuming your browswer is configured). Sean - Original Message - From: [EMAIL

[R] nlminb function

2004-01-20 Thread Helena Rodnight
Hello, I've got a program written in S-plus which I think is converted successfully to R with the exception of part of the opt.param function written. In S-plus it is: nlminb(start=x0, obj=negllgamma.f, scale=1, lower=c(0.01,0.0001), upper=c(10,0.), gamma=gamma, maxlik=maxlik, y=ldose,

Re: [R] programming cycle: file managment

2004-01-20 Thread Sean Davis
Try using emacs and ess. It will do what you ask and much, much more. For most systems, emacs is available as a binary or debian package; installing ess can usually be done painlessly from within emacs. Sean - Original Message - From: Pedro Cruz [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [R] Changing workspace from within an R session

2004-01-20 Thread Sean Davis
You might consider using emacs and ess where you can work on a text file (code) as a file, loading it in as needed while running more than one instance of R within emacs. You can then code and debug your code in one R session (where you have your little objects) and jump over to your big

[R] Matrix exponential

2004-01-20 Thread Erin Hodgess
How about this: expm function(x,pow=2) { xd - diag((eigen(x)$values^pow)) xm - eigen(x)$vector %*% xd %*% t(eigen(x)$vector) return(xm) } xa [,1] [,2] [1,]21 [2,]13 expm(xa,pow=3) [,1] [,2] [1,] 15 20 [2,] 20 35 xa %*% xa %*% xa [,1] [,2] [1,]

Re: [R] Restoring an S object that was data-dumped

2004-01-20 Thread Spencer Graves
Have you tried 'help.search(data.restore)' or the posting guide at http://www.R-project.org/posting-guide.html;? I believe the object of your desires (at least for this request) is in library(foreign). hope this helps. spencer graves Ravi Varadhan wrote: Hi: In R, how can

RE: [R] Re: Need help on how to list functions from a loaded pack age...

2004-01-20 Thread Huntsinger, Reid
You can get help on the whole package by help(package=multtest) which is likely pretty close to what you want. There's the index etc for the package on the web as well. You can also just look in the package's installation directory. If it's loaded you can do an ls(2) say if it loaded in

[R] problems installing odesolve in OS X

2004-01-20 Thread Jorge A Ahumada
When I try to install odesolve install.packages(odesolve) I get the following error: --- gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o odesolve.so bnorm.o call_lsoda.o cfode.o dgbfa.o dgbsl.o dgefa.o dgesl.o ewset.o fdump.o fnorm.o i1mach.o intdy.o

Re: [R] Restoring an S object that was data-dumped

2004-01-20 Thread Roger D. Peng
Obviously, it was data.restore() that produced the error below. However, I think S-PLUS 5 might not be supported by data.restore() in the `foreign' package since the docs there say it can only read objects from S-PLUS versions 3.x and 4.x (on Unix). -roger Spencer Graves wrote: Have

Re: [R] Restoring an S object that was data-dumped

2004-01-20 Thread Spencer Graves
1. Could you upgrade to the latest version of R (1.8.1)? I don't know if it will help, but it might. 2. I just used Notepad to open a data.dump file created in S-Plus 6.2. It started, ## Dump S Version 4 Dump ##. How does your data.dump file begin? 3. If you upgrade

Re: [R] Restoring an S object that was data-dumped

2004-01-20 Thread Prof Brian Ripley
On Tue, 20 Jan 2004, Roger D. Peng wrote: Obviously, it was data.restore() that produced the error below. However, I think S-PLUS 5 might not be supported by data.restore() in the `foreign' package since the docs there say it can only read objects from S-PLUS versions 3.x and 4.x (on

Re: [R] Restoring an S object that was data-dumped

2004-01-20 Thread Duncan Murdoch
On Tue, 20 Jan 2004 19:42:51 + (GMT), Prof Brian Ripley [EMAIL PROTECTED] wrote : On Tue, 20 Jan 2004, Roger D. Peng wrote: Obviously, it was data.restore() that produced the error below. However, I think S-PLUS 5 might not be supported by data.restore() in the `foreign' package since

[R] Ruby R

2004-01-20 Thread Neil Eastep
I see the packages from OmegaHat -- RSPython and RSPerl, however, I don't see anything available for Ruby. Is there a similar package for Ruby? If, not, is there the possiblility of creating one? Thx, Neil Eastep. Try not. Do, do! Or do not. There is no try Jedi Master Yoda

RE: [R] evaluation of discriminant functions+multivariate homosce dasticity

2004-01-20 Thread Liaw, Andy
While I don't know anything about Box's M test, I googled around and found a Matlab M-file that computes it. Below is my straight-forward translation of the code, without knowing Matlab or the formula (and done in a few minutes). I hope this demonstrates one of Prof. Ripley's point: If you really

[R] problem with rcmd build R-devel

2004-01-20 Thread James MacDonald
Hi All, I am having a problem with Rcmd build using R-devel on WinXP. If I try to build a package using the --binary flag, I get the following error: Error: cannot change to directory ' 'c:/TEMP/Rbuild.' ' Where is some number. I can get Rcmd build to work using R-1.7.1 and R-1.8.0,

Re: [R] Ruby R

2004-01-20 Thread Armin Roehrl
Neil Eastep wrote: I see the packages from OmegaHat -- RSPython and RSPerl, however, I don't see anything available for Ruby. Is there a similar package for Ruby? If, not, is there the possiblility of creating one? Did you already look at: ruby-rmathlib http://rrb.sourceforge.net/dist/?

[R] Combining several regressions

2004-01-20 Thread Hadley Wickham
I've a situation where I need to perform different regressions on different subsets of my data and then combine the resulting fitted values back into the original dataset (partly this is because loess doesn't do grouping, but I'd also like to approximate the shrinkage estimators of mixed

Re: [R] Combining several regressions

2004-01-20 Thread Peter Dalgaard
Hadley Wickham [EMAIL PROTECTED] writes: For example, I want to fit separate loess regressions for each value of some conditioning value. I can do the regressions with by(data.frame, conditioning.variable, function(subset) { loess(y ~ x, subset) }) but I'm at a loss as how to get the fitted

Re: [R] Combining several regressions

2004-01-20 Thread Hadley Wickham
b - by(data.frame, conditioning.variable, function(subset) { loess(y ~ x, subset) }) unsplit(lapply(b,fitted), conditioning.variable) That does the trick. Thanks! Hadley __ [EMAIL PROTECTED] mailing list

[R] MODREG source

2004-01-20 Thread mfischer
Is the fortran source code for the MODREG package available? If so can someone send me a zip file or point to a web address? Thanks, Matt. - This mail sent through IMP: www-mail.usyd.edu.au __ [EMAIL

[R] Better way to find function

2004-01-20 Thread nuvo nuvo
To whom it may concern, 1. I would like to know if there is a command in R to choose a function for a given dataset. I am facing a difficult question about how to fit the data [ please attachment ] 2. Are there any function that will allow users to do the piecewise regression? If not, is it

[R] Any Better way to find function

2004-01-20 Thread nuvo nuvo
To whom it may concern, 1. I would like to know if there is a command in R to choose a function for a given dataset. I am facing a difficult question about how to fit the data [ please attachment ] 2. Are there any function that will allow users to do the piecewise regression? If not, is it