Re: [R] RConsole

2004-02-10 Thread Uwe Ligges
Liaw, Andy wrote: On Windows, I suppose? Save the Rconsole file in the etc subdirectory under where you installed R. HTH, Andy From: Marcos Sanches I changed my R console configurations, for example, the letters are white, the background is black, etc,... Then I saved this new configuration.

[R] Available in S-plus, also in R1.8.1?

2004-02-10 Thread Hoeven, Maarten van der
Hi, I've send this one to the list last Thursday, no reaction yet. It's about the Connect Type in S+. === Hello all, I'm looking for the R-equivalent of the S-option Connect type: half horiz first. Link: http://miner.stern.nyu.edu/Splus/help/guihelp/__hhelp/connect_type.htm I'm plotting with

Re: [R] Available in S-plus, also in R1.8.1?

2004-02-10 Thread Uwe Ligges
Hoeven, Maarten van der wrote: Hi, I've send this one to the list last Thursday, no reaction yet. It's about the Connect Type in S+. In order to get an answer, you might want to be more specific what Connect type: half horiz first really does in S-PLUS. I don't think something like that is

RE: [R] Available in S-plus, also in R1.8.1?

2004-02-10 Thread Hoeven, Maarten van der
Agree, if a plot needs to be explained, something is not very well thought of. However, there are good rationals to do it this way. Moreover, I'm using R to replace SPSS-functionality (and imaging by pvwave) within a project, and I want to be close as possible to the image output of the preceeding

RE: [R] confidence-intervals in barchart

2004-02-10 Thread Marwan Khawaja
Try 'parplot2' -- 'gregmisc' package. Marwan --- Marwan Khawaja http://staff.aub.edu.lb/~mk36/ --- -Original Message- From: [EMAIL PROTECTED]

Re: [R] confidence-intervals in barchart

2004-02-10 Thread Dominique Couturier
hello, you can find a very detailed example of barplot with CI in the volume 3/2 of R-news (october 2003). hope this help. dlc Hi R users, 1) How does one show confidence-intervals in a barchart and use rownames for labels on the y-axes? I have looked at plotCI in gregmisc package . But it

Re: [R] confidence-intervals in barchart

2004-02-10 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi R users, 1) How does one show confidence-intervals in a barchart and use rownames for labels on the y-axes? I have looked at plotCI in gregmisc package . But it does not seem to produce something like a barchart. The statistic, error, upper-bound, and

[R] confidence-intervals in dotchart

2004-02-10 Thread TyagiAnupam
My earlier posting should have said dotchart, not barchart. 1)  How does one show confidence-intervals in a dotchart and use rownames for labels on the y-axes?  I have looked at plotCI in gregmisc package . But it does not seem to produce something like a dotchart.  The statistic, error,

Re: [R] Available in S-plus, also in R1.8.1?

2004-02-10 Thread Uwe Ligges
Hoeven, Maarten van der wrote: Agree, if a plot needs to be explained, something is not very well thought of. However, there are good rationals to do it this way. Moreover, I'm using R to replace SPSS-functionality (and imaging by pvwave) within a project, and I want to be close as possible to

[R] Evaluating R. I need to open a dataset.

2004-02-10 Thread Diego Moretti
Hello, Our Statistics Group is evaluating the use of R for the elaboration of some index. We have some datasets sas and we would like to evaluate performance in the elaborations of mean, percentile, Gini index of a population and of a survey sample. I need to open a dataset. Currently I've

Re: [R] confidence-intervals in dotchart

2004-02-10 Thread Frank E Harrell Jr
On Tue, 10 Feb 2004 04:30:46 EST [EMAIL PROTECTED] wrote: My earlier posting should have said dotchart, not barchart. 1)  How does one show confidence-intervals in a dotchart and use rownames for labels on the y-axes?  I have looked at plotCI in gregmisc package . But it does not seem to

[R] The ttest.c example in R under MS Windows

2004-02-10 Thread Lennart . Borgman
We are trying to compile and run the ttest.c example that comes with R (in C:\Program Files\R\rw1081\src\library\windlgs\src\ttest.c). After compiling it with MS Visual C++ we load the DLL with dyn.load. So far it seems good, but when we try to call it from R (after running C:\Program

[R] Diagnostic in multilevel models

2004-02-10 Thread Fabrizio Consentino
I have fit a model with glmmPQL function in MASS library. I fit a binomial longitudinal response variable nested in 17 stations. I would like to know how I can obtain elements of diagnostic checks about these models in order to choose best model. I use summary(), but can I use other

[R] R: lags

2004-02-10 Thread allan clark
hi all how does one simulate a random walk process? i.e y(0)=0 y(t)=y(t-1)+ e(t) where e(t) is normal(0,1) say. Regards allan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

RE: [R] The ttest.c example in R under MS Windows

2004-02-10 Thread Liaw, Andy
Works just fine for me with the recommended compilers and tools. Here's a transcript of the build: c:\tools\R-1.8.1\src\gnuwin32Rcmd install windlgs -- Making package windlgs adding build stamp to DESCRIPTION making DLL ... making ttest.d from ttest.c gcc

Re: [R] The ttest.c example in R under MS Windows

2004-02-10 Thread Duncan Murdoch
On Tue, 10 Feb 2004 14:27:21 +0100, [EMAIL PROTECTED] wrote : We are trying to compile and run the ttest.c example that comes with R (in C:\Program Files\R\rw1081\src\library\windlgs\src\ttest.c). After compiling it with MS Visual C++ we load the DLL with dyn.load. So far it seems good, but

Re: [R] how to use try()

2004-02-10 Thread r.ghezzo
Thanks to everybody who answered my question. Here are the suggestion for completion sake of the archives. from John Fox @ Mcmaster.ca lo - try(nls(y~y0+a/(1+(x/x0)^b),start=list(y0=0.1,a=a0,x0=x00,b=-8.1))) beta[i] - if (class(lo) == try-error) NA else lo$m$getPars()[4] from Peter Dalgaard @

Re: [R] confidence-intervals in dotchart

2004-02-10 Thread TyagiAnupam
In a message dated 2/10/04 3:33:07 AM Pacific Standard Time, [EMAIL PROTECTED] writes: On Tue, 10 Feb 2004 04:30:46 EST [EMAIL PROTECTED] wrote: My earlier posting should have said dotchart, not barchart. 1) How does one show confidence-intervals in a dotchart and use rownames for

RE: [R] R: lags

2004-02-10 Thread Wayne Jones
Try this for size: Not a very efficient way to do it though!!! Get.Random.Walk-function(){ length.walk-1000 rand.walk-rep(0,length.walk) for(i in 2:length.walk) { rand.walk[i]-rand.walk[i-1]+rnorm(1, mean=0, sd=1) } return(rand.walk) } plot(Get.Random.Walk()) -Original Message-

Re: [R] R: lags

2004-02-10 Thread Anders Nielsen
How about: y-cumsum(c(0,rnorm(100))) On Tue, 10 Feb 2004, allan clark wrote: hi all how does one simulate a random walk process? i.e y(0)=0 y(t)=y(t-1)+ e(t) where e(t) is normal(0,1) say. Regards allan __ [EMAIL PROTECTED] mailing

[R] How to compute the minimal distanct between a point and curve in N-dim space

2004-02-10 Thread Feng Zhang
Dear All, In the N-dimensional space, give a data point A and a curve f, how to write the explicit expression for calculating the minimal distance between A and f? Or have to use some nonlinear optimization method to calcualte it? Thanks for your point. Fred [[alternative HTML

Re: [R] R: lags

2004-02-10 Thread Thomas Lumley
On Tue, 10 Feb 2004, allan clark wrote: hi all how does one simulate a random walk process? i.e y(0)=0 y(t)=y(t-1)+ e(t) where e(t) is normal(0,1) say. e-rnorm(100) y-cumsum(e) -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED]

Re: [R] coxph error

2004-02-10 Thread Thomas Lumley
On Tue, 10 Feb 2004, Fredrick Schumacher wrote: R list: I am using a 'for' loop to run a number of different models (stratified by different variables) with coxph. The data becomes sparse when some strata are used causing the model to become unstable. The following error occurs and the

Re: [R] coxph error

2004-02-10 Thread Spencer Graves
Have you considered try? hope this helps. spencer graves Fredrick Schumacher wrote: R list: I am using a 'for' loop to run a number of different models (stratified by different variables) with coxph. The data becomes sparse when some strata are used causing the model to become

[R] how to get the GUI directory chooser on Windows?

2004-02-10 Thread Liaw, Andy
Dear R-help, Can anyone tell me if it's possible to call up the directory chooser (the one you get when you click on File - Change Dir...) in Rgui from the R command line? Seems like file.choose() can't be used to choose a directory. This is in R-1.8.1 on WinXPPro. Any help much appreciated!

[R] name space conflict using RMySQL and ROracle

2004-02-10 Thread lutz . thieme
Hello everybody, could anybody give me a hint how to to use RMySQL and ROracle libraries at the same time without getting conflict with name spaces? Because it needs to much time, unloading and reloading the libraries is no solution... Example: --- snip - library(ROracle)

[R] interfacing C code in Windows

2004-02-10 Thread Peyrard Nathalie
Hi, I know how to incorporate C code in R if using Linux. Can someone explain me how to do the same using Windows (if it is possible)? Thanks Nathalie Peyrard __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] R: lags

2004-02-10 Thread Peter Dalgaard
allan clark [EMAIL PROTECTED] writes: hi all how does one simulate a random walk process? i.e y(0)=0 y(t)=y(t-1)+ e(t) where e(t) is normal(0,1) say. E.g., c(0,cumsum(rnorm(1000))) -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics

Re: [R] how to use try()

2004-02-10 Thread Spencer Graves
The try solutions suggested won't work in S-Plus. If you want transportable code, the following worked for me just now in both S-Plus 6.2 and R 1.8.1: error - function()stop() result - try(error()) if(regexpr(error, casefold(class(result)))0) try trapped an error Best Wishes,

[R] Course***R/S-plus Programming Techniques in Raleigh, February 26-27

2004-02-10 Thread elvis
XLSolutions Corporation ([1]www.xlsolutions-corp.com) is proud to announce February-March 2004 2-day R/S-plus Fundamentals and Programming Techniques. Raleigh, NC February, 26,27 Interested in our R/Splus Advanced Programming course? Please email

[R] Dotplot: y-labels from rownames

2004-02-10 Thread TyagiAnupam
How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og], subset=statgh2[og]0.1, data=h2inqerrg02st, xlab=G, ylab=row.names(h2inqerrg02st)[og], main=) I have tried

Re: [R] lattice: scales beginning at zero with relation=free

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 11:27, Wolfram Fischer wrote: Is there an easy way to have scales beginning with zero and ending with the local maximum data value of each panel when using a lattice function with ``scales=list( relation=free )''? Add prepanel = function(x, y, ...) list(xlim =

[R] Diagnostic in multilevel models

2004-02-10 Thread Fabrizio Consentino
Hello I have fit a model with glmmPQL function in MASS library. I fit a binomial longitudinal response variable nested in 17 stations. I would like to know how I can obtain elements of diagnostic checks about these models in order to choose best model. I use summary(), but can I use other

[R] Constructing an environment from a data.frame

2004-02-10 Thread Duncan Murdoch
Code like df - data.frame(x=1:10) y - 20:29 eval(quote(x+y), env=df) does what you might expect: it looks for x and y in the data.frame, and when it doesn't find y there, it looks in the parent environment. However, sometimes I'd like to construct a single environment out of df, so that I can

[R] Invoking R from PHP/Mysql environment

2004-02-10 Thread VERSRJ
We have a setup in which we use PHP (with Geeklog as a CMS) as a front end to MySQL. We plan to use R for offering user driven and automated statistical analysis of some of the data we obtain. We'll be using the R interface to the MySQL database from omegahat (www.omegahat.org) for getting the

Re: [R] Dotplot: y-labels from rownames

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 11:55, [EMAIL PROTECTED] wrote: How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og], subset=statgh2[og]0.1, data=h2inqerrg02st,

[R] make check in 1.8.1.

2004-02-10 Thread Rolf Turner
I just (finally!!!) got R version 1.8.1 to configure and build under Solaris 9 (after much travail; there were funnies in my environment variables that mucked things up, but that's another story). Anyhow, when I ran ``make check'' I got an error right toward the end. Looking in the directory

Re: [R] Invoking R from PHP/Mysql environment

2004-02-10 Thread Paul Murrell
Hi [EMAIL PROTECTED] wrote: We have a setup in which we use PHP (with Geeklog as a CMS) as a front end to MySQL. We plan to use R for offering user driven and automated statistical analysis of some of the data we obtain. We'll be using the R interface to the MySQL database from omegahat

[R] Permissions after install of R 1.8.1.

2004-02-10 Thread Rolf Turner
I just encountered another mild funny in encounters with R 1.8.1. I did a make install (as root) of my newly built R 1.8.1. When I tried to test it I was told ``permission denied'' in respect of /usr/local/lib/R/bin/R.bin. I had a look, and the permissions on R.bin were indeed -rwx--1

[R] generate random sample from ZINB

2004-02-10 Thread Haiyan Chen
I want to generate 1,000 random samples of sample size=1,000 from ZINB. I know there is a rnegbin() to generate random samples from NB, and I know I can use the following process: do i=1 to 1000 n=0 do i=1 to 1000 if runi(1)0.1 then x(i) = 0; else x(i)=rnegbin(); n=n+1; if n1000 then stop;

[R] Bug in concord package

2004-02-10 Thread Jim Lemon
Please note that there is a bug in the tie correction function in the package: concord_1.2.tar.gz Thanks to Dr Siegfried Macho, who discovered it. I have fixed it, and uploaded the revised package: concord_1.2-1.tar.gz If anyone has downloaded the first package, please replace it with the

Re: [R] make check in 1.8.1.

2004-02-10 Thread Don MacQueen
Whatever it is, it's apparently a bit on the subtle side. Perhaps a previous test loads the data, and for some reason that previous test doesn't run for you. I couldn't find one that did, though. From my 'make check': running code in '../../source/tests/reg-tests-3.R' ... OK comparing

Re: [R] Dotplot: y-labels from rownames

2004-02-10 Thread TyagiAnupam
In a message dated 2/10/04 12:52:02 PM Pacific Standard Time, [EMAIL PROTECTED] writes: On Tuesday 10 February 2004 11:55, [EMAIL PROTECTED] wrote: How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~

[R] levelplot colorkey

2004-02-10 Thread Jeff Jorgensen
Dear R'ers, I've scanned available documentation and the web, but I can't seem to figure out where I've gone wrong in adding numbers to scale the colorkey in levelplot (Lattice package). For example, levelplot(z, contour=T, labels=T, cuts=10, region=T,... colorkey=list(T,

[R] Clinical significance as a package?

2004-02-10 Thread Alistair Campbell
Hi, Many thanks to those of you who responded to my last post about Schafer's MI packages. I am really pleased to have access to them through R which, I have to say, is an amazing piece of software. I am only sorry that I haven't found it until now. But, to my question. Does anyone know if there

[R] VÍRUS ENCONTRADO NA MENSAGEM DESTINADA A fred@facic.fuom.br

2004-02-10 Thread admlab
A T E N Ç Ã O : V I R U S E N C O N T R A D O Foi encontrado vírus no e-mail destinado a [EMAIL PROTECTED]. Para evitar a propagação do vírus, a entrega desta mensagem foi evitada. Aconselhamos você a atualizar o programa antivirus do seu computador. Qualquer dúvida

[R] RE: Savitzky-Golay smoothing -- an R implementation

2004-02-10 Thread Nicholas Lewin-Koh
Hi, Savitzky and Golay were indeed pioneers of local least squares methods. However the SG smoother is hard to implement in practice because of missing values and problems at the boundary. Paul Eilers at Leiden has presented a very nice method for smoothing series based on penalized least squares

Re: [R] levelplot colorkey

2004-02-10 Thread Deepayan Sarkar
On Tuesday 10 February 2004 18:07, Jeff Jorgensen wrote: Dear R'ers, I've scanned available documentation and the web, but I can't seem to figure out where I've gone wrong in adding numbers to scale the colorkey in levelplot (Lattice package). For example, levelplot(z, contour=T, labels=T,

[R] RW1081.exe installation

2004-02-10 Thread Yuandan Zhang
Hi, I download R 1.081 for windows (RW1081.exe). I tried to install it on windows 98 or windows xp, it stoped and stated that 'This program must be run under Win32'. Any one have suggestion how to fix it ? Thanks Yuandan __ [EMAIL PROTECTED] mailing

[R] Installation on Mac OS X 10.3.2 with Fink readline and headers

2004-02-10 Thread Michael Glaesemann
Hello! I'd like to install R on my machine in order to work with Joe Conway's pl/R in PostgreSQL. I'm running Mac OS X 10.3.2 with readline installed via Fink. I downloaded the Rdevel.dmg, and installed first Rframework.pkg and then Rapp.pkg. (I did not install the J_libreadline.pkg,

[R] lapply and dynamically linked functions

2004-02-10 Thread Jason Nielsen
Hi all, I'm trying to use lapply on a list with the following command: out-lapply(mylist,myfun,par1=p,par2=d) (1) where myfun-function(x,par1,par1) {.} (2) now this function is in fact a wrapper for some Fortran code I have written so I think this might be

[R] MCD-Estimator in R

2004-02-10 Thread Miriam=20Drei=DFig
Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hypatia.math.ethz.ch X-Spam-Status: No, hits=0.7 required=5.0 tests=BAYES_30,HTML_MESSAGE,MIME_HTML_ONLY autolearn=no version=2.63 X-Spam-Level: