Re: [R] How can we ring a bell in Windows?

2005-03-08 Thread Martin Maechler
Duncan == Duncan Murdoch [EMAIL PROTECTED] on Mon, 07 Mar 2005 19:32:17 + writes: Duncan On Mon, 7 Mar 2005 18:18:37 + (GMT), Prof Brian Duncan Ripley [EMAIL PROTECTED] wrote : On Mon, 7 Mar 2005, Duncan Murdoch wrote: On Tue, 8 Mar 2005 00:31:07 +0800

Re: [R] 3D plot not working as desired!

2005-03-08 Thread Duncan Murdoch
On Tue, 8 Mar 2005 01:50:04 -0600, [EMAIL PROTECTED] wrote : Hello R-users! I am trying to plot 3 vectors (x,y,z) of observations generated by mvrnorm in library(MASS). I tried plot3d in library(djmrgl) and scatterplot3d. But these program gives x,y,z axis which do not intersect at the origin

[R] a==0 vs as.integer(a)==0 vs all.equal(a,0)

2005-03-08 Thread Robin Hankin
hi ?integer says: Note that on almost all implementations of R the range of representable integers is restricted to about +/-2*10^9: 'double's can hold much larger integers exactly. I am getting very confused as to when to use integers and when not to. In my line I need exact

Re: [R] a==0 vs as.integer(a)==0 vs all.equal(a,0)

2005-03-08 Thread Peter Dalgaard
Robin Hankin [EMAIL PROTECTED] writes: hi ?integer says: Note that on almost all implementations of R the range of representable integers is restricted to about +/-2*10^9: 'double's can hold much larger integers exactly. I am getting very confused as to when to

Re: [R] a==0 vs as.integer(a)==0 vs all.equal(a,0)

2005-03-08 Thread Duncan Murdoch
On Tue, 8 Mar 2005 09:03:43 +, Robin Hankin [EMAIL PROTECTED] wrote : hi ?integer says: Note that on almost all implementations of R the range of representable integers is restricted to about +/-2*10^9: 'double's can hold much larger integers exactly. I am getting very

Re: [R] a==0 vs as.integer(a)==0 vs all.equal(a,0)

2005-03-08 Thread Prof Brian Ripley
On Tue, 8 Mar 2005, Duncan Murdoch wrote: On Tue, 8 Mar 2005 09:03:43 +, Robin Hankin [EMAIL PROTECTED] wrote : hi ?integer says: Note that on almost all implementations of R the range of representable integers is restricted to about +/-2*10^9: 'double's can hold much larger

[R] Mascotanet

2005-03-08 Thread mascotanet_responde
Estimado visitante, Por el momento no nos es posible responder a su correo, estamos trabajando para que en fecha próxima podamos resolver sus dudas y/o comentarios. Atentamente. Mascotanet.com __ R-help@stat.math.ethz.ch mailing list

[R] To convert an adjacency list model into a nested set model

2005-03-08 Thread Gesmann, Markus
Dear R-help I am wondering if somebody wrote some code to convert an adjacency list model into a nested set model. In principal I want to do the same as John Celko mentioned it here with SQL: http://groups.google.co.uk/groups?hl=enlr=lang_enselm=8j0n05%24n31%241 %40nnrp1.deja.com Assume you have

Re: [R] How can we ring a bell in Windows?

2005-03-08 Thread Prof Brian Ripley
On Tue, 8 Mar 2005, Martin Maechler wrote: Duncan == Duncan Murdoch [EMAIL PROTECTED] on Mon, 07 Mar 2005 19:32:17 + writes: Duncan On Mon, 7 Mar 2005 18:18:37 + (GMT), Prof Brian Duncan Ripley [EMAIL PROTECTED] wrote : On Mon, 7 Mar 2005, Duncan Murdoch wrote: On

[R] Quantian

2005-03-08 Thread Frank E Harrell Jr
Congratulations Dirk on the article in linuxtoday.com today about Quantian. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University __ R-help@stat.math.ethz.ch

[R] Non-linear minimization

2005-03-08 Thread Sébastien Ballesteros
hello, I have got some trouble with R functions nlm(), nls() or optim() : I would like to fit 3 parameters which must stay in a precise interval. For exemple with nlm() : fn-function(p) sum((dN-estdata(p[1],p[2],p[3]))^2) out-nlm(fn, p=c(4, 17, 5), hessian=TRUE,print.level=2) with estdata() a

Re: [R] Non-linear minimization

2005-03-08 Thread Uwe Ligges
Sébastien Ballesteros wrote: hello, I have got some trouble with R functions nlm(), nls() or optim() : I would like to fit 3 parameters which must stay in a precise interval. For exemple with nlm() : fn-function(p) sum((dN-estdata(p[1],p[2],p[3]))^2) out-nlm(fn, p=c(4, 17, 5),

RE: [R] Non-linear minimization

2005-03-08 Thread Wiener, Matthew
I have had my best luck by re-parametrizing so that I no longer needed restrictions. For example, if parameters must be positive, then I optimize over parameters in log space, taking the exponential within my function. This requires small changes to the function I'm optimizing (and the gradient,

Re: [R] Non-linear minimization

2005-03-08 Thread Dimitris Rizopoulos
maybe you could re-parameterize the problem, e.g., p \in (a, b) p^* = (p - a) / (b - a) \in (0, 1) x = qlogis(p^*) \in \Re I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35,

[R] Dataframe modification

2005-03-08 Thread Ramzi Feghali
Hello, I have a problem and wish if anybody have a quick solution or function or if this question was asked before and you could give me the date to look in the archives for the response. My problem is that I have a dataframe D[663,40] with only one column with repeated values lines and a factor

[R] ESS

2005-03-08 Thread Mahdi Osman
Hi all, I have got a dataframe in coma delimted text format. My ESS and R processes are working well and active. I can read R help files and documentations from inside ESS. Can I perform anayltical operations such as (glm, plot ect) on elements of my dataframe (variables) from within ESS? I

Re: [R] Dataframe modification

2005-03-08 Thread Gabor Grothendieck
Ramzi Feghali ramzi_feg at yahoo.fr writes: : : Hello, : I have a problem and wish if anybody have a quick : solution or function or if this question was asked : before and you could give me the date to look in the : archives for the response. : My problem is that I have a dataframe D[663,40]

Re: [R] ESS

2005-03-08 Thread Jean Eid
try and read the ess manual a bit and look at the folowing reference card http://stat.ethz.ch/ESS/refcard.pdf On Tue, 8 Mar 2005, Mahdi Osman wrote: Hi all, I have got a dataframe in coma delimted text format. My ESS and R processes are working well and active. I can read R help files and

[R] Job: Life Sciences Statistical Computing, Insightful Corp. Seattle

2005-03-08 Thread Jill Goldschneider
Insightful is searching for a candidate to fill a technology position whose primary function is to develop commercial software for statistical analysis of large experimental bioinformatics/genomics data sets. Tools include supervised and unsupervised machine learning techniques, with applications

[R] Pattern recognition

2005-03-08 Thread S Peri
Dear group, A data matrix when plotted as a line plot, I see several patterns. For example, how my students performed for different courses they took this academic year. I need to find out a pattern divided into three categories... say excellent, mediocral and worst. How can I be able to fix

Re: [R] Pattern recognition

2005-03-08 Thread S Peri
A small correction: a,b,c,d - On X-axis course points : on Y-axis for all students. 2. I do not know if this can be called pattern recognition. What i mean is the line patterns in the line graph. P --- S Peri [EMAIL PROTECTED] wrote: Dear group, A data matrix when plotted as a

Re: [R] To convert an adjacency list model into a nested set model

2005-03-08 Thread Gabor Grothendieck
Gesmann, Markus Markus.Gesmann at lloyds.com writes: : : Dear R-help : : I am wondering if somebody wrote some code to convert an adjacency list : model into a nested set model. : In principal I want to do the same as John Celko mentioned it here with : SQL: :

[R] Multidimensional Scaling (MDS) in R

2005-03-08 Thread Isaac Waisberg
Hi; I am working with the similarity matrix below and I would like to plot a two-dimensional MDS solution such as each point in the plot has a label. This is what I did: data - read.table('c:/multivariate/mds/colour.txt',header=FALSE) similarity - as.dist(data) distance - 1-similarity

[R] The null hypothesis in kpss test (kpss.test())

2005-03-08 Thread Weiguang Shi
is that 'x' is level or trend stationary. I did this s-rnorm(1000) kpss.test(s) KPSS Test for Level Stationarity data: s KPSS Level = 0.0429, Truncation lag parameter = 7, p-value = 0.1 Warning message: p-value greater than printed p-value in: kpss.test(s) My

Re: [R] The null hypothesis in kpss test (kpss.test())

2005-03-08 Thread Achim Zeileis
As help(kpss.test) tells you: kpss.test() approximates the p values by interpolation from a simulated table of critical values. As p values larger than 0.1 are typically regarded to be non-significant and p values smaller than 0.01 are typically regarded to be highly significant, the corresponding

Re: [R] The null hypothesis in kpss test (kpss.test())

2005-03-08 Thread Weiguang Shi
Understood! And thanks! Weiguang --- Achim Zeileis [EMAIL PROTECTED] wrote: As help(kpss.test) tells you: kpss.test() approximates the p values by interpolation from a simulated table of critical values. As p values larger than 0.1 are typically regarded to be non-significant and p

[R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Federico Calboli
Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted all the objects in the environment, saving it as an empty environment, so it's just a matter of nitpicking I suppose.

Re: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Roger D. Peng
R saves the workspace in a file called '.RData'. Simply remove this file from your working directory. Or if you startup R and get the message, try unlink(.RData) -roger Federico Calboli wrote: Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the

RE: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Federico Calboli
On Tue, 2005-03-08 at 15:57 -0500, Wiener, Matthew wrote: Remove the (now empty, because you deleted all objects) file .RData from the directory. Hope this helps, Thanks, it did fix the problem. Cheers, Federico Calboli -- Federico C. F. Calboli Department of Epidemiology and Public

RE: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Liaw, Andy
Either remove .RData in the directory, or start R with --no-restore option. Andy From: Federico Calboli Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted

Re: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Jan T. Kim
On Tue, Mar 08, 2005 at 08:51:44PM +, Federico Calboli wrote: I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted all the objects in the environment, saving it as an

Re: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Achim Zeileis
On Tue, 08 Mar 2005 20:51:44 + Federico Calboli wrote: Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted all the objects in the environment, saving it as

[R] generically setting attributes of a function

2005-03-08 Thread shang stud
Hello all: I wonder if there is a generic way to assign the name of a function as an attribute of the function. For example, w = function(x) x^2; attr(w, name) = w; This assigns the name attribute of function w to be w. Would it be possible to put the second line of the code inside the

Re: [R] generically setting attributes of a function

2005-03-08 Thread Gabor Grothendieck
shang stud facS93 at mors.hampshire.edu writes: : : Hello all: : : I wonder if there is a generic way to assign the name of a function as an : attribute of the function. For example, : : w = function(x) x^2; : attr(w, name) = w; : : This assigns the name attribute of function w to be w. : :

RE: [R] how modify object in parent.env

2005-03-08 Thread McGehee, Robert
This isn't an environment problem. Assigning something to a get call doesn't make any sense. Use assign. a - 5 get(a) - 10 Error: couldn't find function get- And from the ?assign help page, you can pick what environment you want to make the assignment. Just pick the parent environment.

RE: [R] how modify object in parent.env

2005-03-08 Thread Vadim Ogranovich
Assign() re-binds the value, not modifies it (the latter is what I needed) -Original Message- From: McGehee, Robert [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 3:48 PM To: Vadim Ogranovich; r-help@stat.math.ethz.ch Subject: RE: [R] how modify object in parent.env

Re: [R] how modify object in parent.env

2005-03-08 Thread Marc Schwartz
On Tue, 2005-03-08 at 15:36 -0800, Vadim Ogranovich wrote: Hi, Is it possible to modify an object in the parent.env (as opposed to re-bind)? Here is what I tried: x = 1:3 # try to modify the first element of x from within a new environment local(get(x, parent.env(environment()))[1] -

Re: [R] how modify object in parent.env

2005-03-08 Thread Gabor Grothendieck
You can use - like this: x - 1:3 local(x[1] - x[1]+1) Vadim Ogranovich vograno at evafunds.com writes: : : Assign() re-binds the value, not modifies it (the latter is what I : needed) : : -Original Message- : From: McGehee, Robert [mailto:Robert.McGehee at geodecapital.com] :

Re: [R] Non-linear minimization

2005-03-08 Thread christopher . m . turner
After some experimentation, I have had very good luck with the rgenoud package. It handles box constraints well and for small problems its slow speed has not been much of a problem. It has worked for me on Windows, Macintosh, and Linux. Chris JPMorgan Asset Management

[R] from long/lat to UTM

2005-03-08 Thread yyan liu
Hi: Is there any function in R which can convert the long/lat to UTM(Universal Transverse Mercator)? There are quite a few converters on Internet. However, the interface is designed as input-output which I can not convert lots of locations at the same time. Another question is whether there

[R] Fairouz Makhlouf (2nd request)

2005-03-08 Thread FairouzMakhlouf
Fairouz Makhlouf is still waiting to hear from you to join Fairouz's mobile friends community. Simply click the link below to confirm your relationship with Fairouz. http://www.sms.ac/registration/Intro.aspx?InviteId=eb8mm1u02100uw-c06r=7 Don't want to be invited by your