Re: [R] problem in integrating C routine with R on windows XP

2003-09-29 Thread Peter Dalgaard BSA
Pingzhao Hu [EMAIL PROTECTED] writes: Hi All, I a C function code, which has been successed in integrating with Splus on Unix. Now I want to move it on windows. So I want to integrate this C function with R on windows XP. I download tools.zip and saved it in c:\bin directory, download

Re: [R] a. crossing branches with hclust, b. plot.dendrogram

2003-09-29 Thread Martin Maechler
Petra == Petra Steiner [EMAIL PROTECTED] on Fri, 26 Sep 2003 15:06:59 -0700 writes: Petra Hello, a. when I use hclust with the methods media, median Petra centroid, and mcquitty, and plot the results, the Petra dendrograms have lines that are crossing each Petra other. Is

Re: [R] problem in integrating C routine with R on windows XP

2003-09-29 Thread Uwe Ligges
Pingzhao Hu wrote: Hi All, I a C function code, which has been successed in integrating with Splus on Unix. Now I want to move it on windows. So I want to integrate this C function with R on windows XP. I download tools.zip and saved it in c:\bin directory, download MinGW and saved it in

RE: [R] CI on median

2003-09-29 Thread Simon Fear
You can also get CIs for medians as a side effect of boxplot. If for some reason you need to get the same result as you would get from SAS, you could use the following (non-optimised but hopefully intelligible) instead. HTH ### # 95% confidence

[R] rgl crashes R

2003-09-29 Thread Karim Elsawy
I was using rgl library and it was going well, all of a sudden it started to crash which leads R to quit giving this error message X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 142 (XFree86-DRI) Minor opcode of failed

[R] problems trying to extend a class

2003-09-29 Thread Laurent Faisnel
Hi all, I have been using for quite a long time a script where a class extends another one (without trouble). But I now have problems of that kind while trying to run the script : Error in insertMethod(methods, sig, args, def, TRUE) : inserting method corresponding to empty signature I

[R] Integrating R functions in C routines

2003-09-29 Thread xavière panhard
Hi everyone, we are working on highly memory consuming programs (with as few loops as possible ) and we were told that programming our loop in C would make our program lighter. I read very carefully the documentation on R extensions and succeeded in integrating fully C program in R, or program

[R] parametric surfaces

2003-09-29 Thread vtas
Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid: x=a*cos(s)*cos(t), y=b*sin(s)*cos(t), z=sin(t); s in [0,2*pi], t in [-pi,pi]. Vytautas Maniusis, Vilnius University, Lithuania __ [EMAIL PROTECTED] mailing list

RE: [R] coloring dendrgram in heatmap?

2003-09-29 Thread Liaw, Andy
From: Xiao-Jun Ma [mailto:[EMAIL PROTECTED] No, I meant coloring the edges of the dendrogram on the left or top of the image plot. I'm not sure if this can be done with the current plot.dendrogram() (which heatmap() calls to draw the trees). You may want to experiment with the edgePar

Re: [R] parametric surfaces

2003-09-29 Thread Spencer Graves
Have you looked at contour and persp (plue outer)? Venables and Ripley (2002) Mondern Applied Statistics with S (Springer) provide useful examples. hope this helps. spencer graves [EMAIL PROTECTED] wrote: Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid:

[R] Downloading LME4?

2003-09-29 Thread Harold Doran
Dear R: Am I having trouble downloading the LME4 library. I am using Windows and am using ver 1.7 I have tried the following: 1) Install package from CRAN, but LME4 is not listed 2) Downloaded LME4 from http://cran.us.r-project.org/, however, I cannot open the file when I try install from

Re: [R] Downloading LME4?

2003-09-29 Thread James MacDonald
I don't think there is a compiled version of this library, so you will have to compile and install yourself. See question 3.1 of the R for Windows FAQ. In addition, the fact that there is not a compiled version on CRAN may indicate a problem with this package on Windows. HTH, Jim James W.

[R] ROracle - Windows?

2003-09-29 Thread ozric
[snip start] -Original Message- From: Fan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:03 PM To: Ernesto Jardim Cc: [EMAIL PROTECTED] Subject: Re: [R] R for large data sets AFAK, ROracle works only for R unix. [snip end] Is it until today true? ,because i get

Re: [R] Downloading LME4?

2003-09-29 Thread Uwe Ligges
Harold Doran wrote: Dear R: Am I having trouble downloading the LME4 library. I am using Windows and am using ver 1.7 I have tried the following: 1) Install package from CRAN, but LME4 is not listed From http://cran.us.r-project.org/bin/windows/contrib/1.7/ReadMe: Some new packages are

Re: [R] Downloading LME4?

2003-09-29 Thread Douglas Bates
Harold Doran [EMAIL PROTECTED] writes: Am I having trouble downloading the LME4 library. I am using Windows and am using ver 1.7 I have tried the following: 1) Install package from CRAN, but LME4 is not listed There is no precompiled version of lme4 for Windows because the last version I

Re: [R] ROracle - Windows?

2003-09-29 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: [snip start] -Original Message- From: Fan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:03 PM To: Ernesto Jardim Cc: [EMAIL PROTECTED] Subject: Re: [R] R for large data sets AFAK, ROracle works only for R unix. [snip end] Is it until

[R] Statistician position, R lovers encouraged

2003-09-29 Thread Jim Rogers
Come help us do pioneering work on a novel biochemical profiling platform! Cantata Pharmaceuticals, a small biotechnology company located in Cambridge, MA is seeking a Ph.D. statistician to work on its biomarker discovery projects and clinical diagnostic applications. Responsibilities

Re: [R] data.frame subsetting

2003-09-29 Thread Hecht Michael, F+E/ST
Hi, I think I have the same problem. The following works aa-data.frame(1:10) ab-data.frame(1:12) ba-data.frame(1:14) bb-data.frame(1:16) xa-data.frame() xa$aa-aa xa$ab-ab xb-data.frame() xb$ba-ba xb$bb-bb xx-data.frame() xx$xa-xa xx$xb-xb summary(xx) xa.aa.X1.10 xa.ab.X1.12

[R] Solving nonlinear system equation

2003-09-29 Thread Wong Jerry
Hi all, I would like to ask that is there any function in R which can solve nonlinear system equations with several variables. Thats mean some functions similar to the 'fsolve' or 'fzero' in matlab. Thanks you Jerry _ Get 10Mb

Re: [R] rgl crashes R

2003-09-29 Thread Duncan Murdoch
On Mon, 29 Sep 2003 11:03:00 +0100, Karim Elsawy [EMAIL PROTECTED] wrote : I was using rgl library and it was going well, all of a sudden it started to crash which leads R to quit giving this error message Generally speaking you'll get the best help on contributed packages by writing to the

Re: [R] Solving nonlinear system equation

2003-09-29 Thread Spencer Graves
Have you considered optim in the MASS library? Also, have you tried www.r-project.org - search - R site search? hope this helps. spencer graves Wong Jerry wrote: Hi all, I would like to ask that is there any function in R which can solve nonlinear system equations with several variables.

RE: [R] coloring dendrgram in heatmap?

2003-09-29 Thread Martin Maechler
AndyL == Liaw, Andy [EMAIL PROTECTED] on Mon, 29 Sep 2003 08:28:03 -0400 writes: From: Xiao-Jun Ma [mailto:[EMAIL PROTECTED] No, I meant coloring the edges of the dendrogram on the left or top of the image plot. AndyL I'm not sure if this can be done with the

[R] can I have a matrix of factors, please?

2003-09-29 Thread Liaw, Andy
Dear R-help, Is it a violation of the S language to have a matrix of factors? What I would like to have is just a factor object that has dim attribute, and can be printed (and subsetted) like a matrix; i.e., all columns/rows have the identical levels. However, I can't get it to work: x -

Re: [R] Solving nonlinear system equation

2003-09-29 Thread M.Kondrin
Wong Jerry wrote: Hi all, I would like to ask that is there any function in R which can solve nonlinear system equations with several variables. Thats mean some functions similar to the 'fsolve' or 'fzero' in matlab. Thanks you Jerry

[R] Rcmdr and Macintosh

2003-09-29 Thread Aniko Szabo
Hi everyone! I am planning to use R and Rcmdr in a basic stat course. I have no access to a computer lab, but I can expect all students to have a laptop. Of couse, I have no control over their OS and in my experience several of them will have Macs. I have Windows. My question is the following:

[R] predicting values from the LME

2003-09-29 Thread Andrej Kveder
Dear listers, I experinced a problem prdicting the values using the LME with multilevel data. I have NA's in my dependent variable and the model is fitted only on the completed cases. I want to estimate the predicted values for the rest of the data (those cases with missing dep. variable) I

[R] Data frame transpose

2003-09-29 Thread Kang . Daiwen
Hi All, I want to ask if there is a transpose function for data frame like the procedure of transpose in SAS? Because I want to partially transpose a data frame which contains 5 columns (siteid, date, time, obs, mod), what I want to do is to put time as the column variables along with siteid,

RE: [R] can I have a matrix of factors, please?

2003-09-29 Thread Liaw, Andy
From: Liaw, Andy [mailto:[EMAIL PROTECTED] Dear R-help, Is it a violation of the S language to have a matrix of factors? What I would like to have is just a factor object that has dim attribute, and can be printed (and subsetted) like a matrix; i.e., all columns/rows have the

Re: [R] Data frame transpose

2003-09-29 Thread Thomas Lumley
On Mon, 29 Sep 2003 [EMAIL PROTECTED] wrote: Hi All, I want to ask if there is a transpose function for data frame like the procedure of transpose in SAS? Because I want to partially transpose a data frame which contains 5 columns (siteid, date, time, obs, mod), what I want to do is to put

Re: [R] Data frame transpose

2003-09-29 Thread Thomas W Blackwell
Dave - I'm not sure whether there is already a function which does exactly what you want, because this is kind of a special case. The functions I wold look at are: by, aggregate, tapply, mapply, and, in the package nlme one I didn't know about before called gapply. But, in your case, the part

[R] multilevel (hierarchical) statistical analysis

2003-09-29 Thread Juan Carlos Rodriguez-Raga
Is there any package developed in R for multilevel (hierarchical) analysis of continuous and categorical dependent variables? __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] multilevel (hierarchical) statistical analysis

2003-09-29 Thread Andrew Perrin
For continuous, see the lme package. For categorical, see glmmPQL in the MASS package, or GLMM in LME4. ap -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill

[R] Parsing R matrix to C

2003-09-29 Thread daniel . ielpo
I'm developing a C dll to use as a package in R. I need to parse a R Matrix as a parameter to a function in a dll. I´d like to know how can I use the Sexp type and how to handle this as a matrix in the C code. Sorry for the bad english. Thanks, Daniel Ielpo

[R] Help needed: plotting with no device

2003-09-29 Thread Ross Boylan
I have a hung session I would very much like to recover, since it has some simulation results I haven't saved (that took about 12 hours to create). Yes, I know, I should have saved while I had the chance. I tried to do a hist() in an environment without a plotting device. My R session now seems

Re: [R] Help needed: plotting with no device

2003-09-29 Thread Ben Bolker
Can you use save.image() to rescue your results? I would try save.image(file=salvage.RData) and see if the file appears. Otherwise I would say you're probably out of luck. On Mon, 29 Sep 2003, Ross Boylan wrote: I have a hung session I would very much like to recover, since it has

[R] BIC or AIC from nnet

2003-09-29 Thread Paul Green
Is AIC or BIC available when using the nnet package? Thank you Paul Green __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] Help needed: plotting with no device

2003-09-29 Thread Ross Boylan
On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote: Can you use save.image() to rescue your results? I would try save.image(file=salvage.RData) and see if the file appears. Otherwise I would say you're probably out of luck. The problem is I can't get back to the command

Re: [R] Help needed: plotting with no device

2003-09-29 Thread Luke Tierney
Look at ?Signal and see if that would help. You may need to rename the appropriate .RData beforehand to be safer. luke On Mon, 29 Sep 2003, Ross Boylan wrote: On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote: Can you use save.image() to rescue your results? I would try

Re: [R] Help needed: plotting with no device

2003-09-29 Thread Jason Turner
Ross Boylan wrote: On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote: Can you use save.image() to rescue your results? I would try save.image(file=salvage.RData) and see if the file appears. Otherwise I would say you're probably out of luck. The problem is I can't get back to the

RE: [R] Data frame transpose

2003-09-29 Thread Gabor Grothendieck
Assuming that the data frame is called m, you can - split the data frame by the values of siteid and date- apply a function to create the new data frame for each such group and - use rbind to put it back together like this: fn lt;- function(x) { y lt;- t(x[,4:5]) data.frame( siteid=x[1,1],

Re: [R] Help needed: plotting with no device

2003-09-29 Thread Thomas Lumley
On Mon, 29 Sep 2003, Ross Boylan wrote: I have a hung session I would very much like to recover, since it has some simulation results I haven't saved (that took about 12 hours to create). Yes, I know, I should have saved while I had the chance. I tried to do a hist() in an environment

RE: [R] Data frame transpose

2003-09-29 Thread Gabor Grothendieck
Sorry about the formatting in that previous email. Here it is again, hopefully with the correct formatting this time. Assuming that the data frame is called m, you can - split the data frame by the values of siteid and date - apply a function to create the new data frame for each such group

[R] CP for rpart

2003-09-29 Thread weidong zhang
Hi All, I have some questions on using library rpart. Given my data below, the plotcp gives me increasing 'xerrors' across different cp's with huge xstd (plot attached). What causes the problem or it's not a problem at all? I am thinking 'xerror's should be decreasing when 'cp' gets smaller.

Re: [R] parametric surfaces

2003-09-29 Thread Ross Ihaka
[EMAIL PROTECTED] wrote: Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid: x=a*cos(s)*cos(t), y=b*sin(s)*cos(t), z=sin(t); s in [0,2*pi], t in [-pi,pi]. Vytautas Maniusis, Vilnius University, Lithuania A genuine 3d vector rendering package is on my todo list, but it has lower

[R] Slide Show at ground zero from one of my R using students

2003-09-29 Thread Paul E Johnson
In case you have students who want try out R, this may help. One of my students, Jeff Morrow, made a PowerPoint Slide Show. He was trying to follow along with this little tutorial I made for people who want to test out R: http://lark.cc.ku.edu/~pauljohn/ps707/Rtutorial1.txt Jeff became

Re: [R] Rcmdr and Macintosh

2003-09-29 Thread John Fox
Dear Aniko, At 10:21 AM 9/29/2003 -0600, Aniko Szabo wrote: Hi everyone! I am planning to use R and Rcmdr in a basic stat course. I have no access to a computer lab, but I can expect all students to have a laptop. Of couse, I have no control over their OS and in my experience several of them

Re: [R] R Production Performance

2003-09-29 Thread Zitan Broth
Hi Joe, Thanks for your follow up note I don't know of a way to achieve it with pure PHP short of writing your own C extension to PHP. I had considered that at one point, but have found it unnecessary since my data is already in Postgres and PL/R lets me do what I need. I could use swig

[R] can't get names from vector in nlm calls

2003-09-29 Thread Jeff D. Hamann
I've been trying to figure out how to get the names of the parameter vector variables when inside the function that nlm calls to return the objective function value: knls - function( theta, eqns, data, fitmethod=OLS, instr=NULL, S=NULL ) { ## print( names( theta ) ) #

[R] shared object

2003-09-29 Thread p hu
Dear R-helper, I have one question for creating shared objects (C code) on Unix. Since there is a set of softwares (such as Rtools, Perl, etc.) to be dowloaded for generating shared objects on windows, I am wondering whether I need to install a set of these kind of softwares to generating shared

[R] Wricke's ecovalences

2003-09-29 Thread Dowkiw, Arnaud
Help ! Does anybody know how to calculate Wricke's ecovalences with R ? Thanks. Arnaud DISCLAIMER**...{{dropped}} __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] debugging R

2003-09-29 Thread Francisco J Molina
To debug R from within Xemacs I have tried two different things: C-u M-x R RET - d SPC gdb RET to start an inferior R process with arguments @option{-d gdb} This is the way described in the official documentation of R. and also M-x R and then start GUD (M-x gdb) giving the R binary (using