Re: [R] compiling under windows

2005-06-30 Thread Prof Brian Ripley
On Thu, 30 Jun 2005, Philip Bermingham wrote: > What is the best way to set up a project in visual studio, work on R and > re compile? Is it better to use a different compiler or programming > environment? I specifically want to work on C and Fortran extensions. See the `R Installation and Admi

[R] compiling under windows

2005-06-30 Thread Philip Bermingham
What is the best way to set up a project in visual studio, work on R and re compile? Is it better to use a different compiler or programming environment? I specifically want to work on C and Fortran extensions. Philip Bermingham [[alternative HTML version deleted]] __

[R] how to code garch-t(1,1),egarch(1,1) and gjr(1,1)

2005-06-30 Thread Nongluck Klibbua
hi, I try to code garch-t(1,1),egach(1,1) and gjr(1,1) to estimate my data. How I can code these model with my data (e.g. garch code is y<-garch(x,order=c(1,1)) best regards, luck __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/list

Re: [R] request/suggestion: modified names

2005-06-30 Thread Gabor Grothendieck
On 6/30/05, Ritter, Christian C GSMCIL-GSTMS/2 <[EMAIL PROTECTED]> wrote: > For some time now I use a modified version of names (extract direction) of > the following type: > Names<- > function (x,filter="^") > { >grep(filter,names(x),value=TRUE) > } > > Request: > Has anyone already writ

[R] FW: plot legend outside the grid

2005-06-30 Thread Ghosh, Sandeep
-Original Message- From: Ghosh, Sandeep Sent: Thursday, June 30, 2005 5:43 PM To: 'Berton Gunter' Subject: plot legend outside the grid Thanks for the pointers... I managed to get everything to look and feel the way I want except for the legend to plot outside the grid... Thanks for

Re: [R] How to rotate the axisnames in a BARPLOT

2005-06-30 Thread Francisco J. Zagmutt
Try the following. I made this based on the eaxmple from FAQ 7.27 tab=table(rpois(100, 2)) #Creates table to make a barplot par(mar = c(6, 4, 4, 2) + 0.1)#Prepares margin to fit x axis labels pts=barplot(tab, xaxt = "n", xlab = "", col="yellow2")#Barplot of tab without x axis or label. #Also st

[R] R CMD INSTALL typo?

2005-06-30 Thread Huntsinger, Reid
I recently installed R-2.1.1 and R CMD INSTALL gives me the message mkdir: cannot create directory `': No such file or directory before doing whatever it is supposed to do. It looks to me like the script template INSTALL.in has a typo, in line 97: (excerpt follows starting with line 93) startdir

Re: [R] ts.plot data labels

2005-06-30 Thread Gabor Grothendieck
On 6/30/05, Beth Wilmot <[EMAIL PROTECTED]> wrote: > Dear R users, > I am trying to put labels on the data points on a ts.plot. > > I have tried: > ts.plot(df.ts, gpars=list(xy.labels=colnames(df.ts), xlab="group", > ylab="level")) > which plots fine but gives no labels > > xy.labels=TRUE > also

Re: [R] ts.plot data labels

2005-06-30 Thread Berton Gunter
"xy.labels" is not a valid parameter for ts.plot;it is for plot.ts (the plot method for ts objects). Please re-read the Help files and note the difference between them. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze th

[R] ts.plot data labels

2005-06-30 Thread Beth Wilmot
Dear R users, I am trying to put labels on the data points on a ts.plot. I have tried: ts.plot(df.ts, gpars=list(xy.labels=colnames(df.ts), xlab="group", ylab="level")) which plots fine but gives no labels xy.labels=TRUE also plots without labels I also tried using text() but got an error

Re: [R] How to rotate the axisnames in a BARPLOT

2005-06-30 Thread Marc Schwartz (via MN)
On Thu, 2005-06-30 at 23:05 +0200, [EMAIL PROTECTED] wrote: > Hi all, > > - how can I do a barplot with rotated axis labels? I've seen the example for > just a plot in the FAQ, but I'll missing the coordinates to plot my text at > the right position beneath the bars. > Is there any (easy?) soluti

[R] How to rotate the axisnames in a BARPLOT

2005-06-30 Thread hulubu
Hi all, - how can I do a barplot with rotated axis labels? I've seen the example for just a plot in the FAQ, but I'll missing the coordinates to plot my text at the right position beneath the bars. Is there any (easy?) solution? - how can I set the y-axis in a barplot to logarithmic scale? Many

Re: [R] Trouble with Excel table connection

2005-06-30 Thread Steve Sherman
That's the conclusion that I've come to. It was working fine, then it wasn't. I know I was using the same commands because I wrote them into a small script. I'll just import it into Access and stop pulling my hair out over this. Thanks. bogdan romocea wrote: >The best 3 things you can do in

[R] ranking predictive features in logsitic regression

2005-06-30 Thread Stephen Choularton
Hi Is there some function R that multiplies each coefficient by the standard deviation of the corresponding variable and produces a ranking? Stephen -- No virus found in this outgoing message. Checked by AVG Anti-Virus. [[alternative HTML version deleted]] ___

Re: [R] Trouble with Excel table connection

2005-06-30 Thread bogdan romocea
The best 3 things you can do in this situation are: 1. don't use Excel. 2. never use Excel. 3. never ever use Excel again. Spreadsheets are _not_ databases. In particular, Excel is a time bomb - use it long enough and you'll get burned (perhaps without even realizing it). See http://www.burns-stat

Re: [R] Help with stripplot

2005-06-30 Thread Ghosh, Sandeep
Another question, in stripchart is there a way to draw a legends. I need legends that gives the mice count for each genotype wt/het/hom, something like the xyplot plot support for key/auto.key. -Sandeep -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Thursday,

[R] vecortizing uniroot() for numerical solutions

2005-06-30 Thread Daniel E. Bunker
#Hi All, # #I need to solve a somewhat complex equation at many parameter values for #a number of different parameters. #A simplified version of the equation is: 0= (d1/(h1^2))-(h2*(d2^2)) #I'd like to solve it across a parameter space of d1 and d2, holding #h1 and h2 co

[R] Trouble with Excel table connection

2005-06-30 Thread Steve Sherman
Hello, I've been using odbcConnectExcel to connect to a spreadsheet database containing a single worksheet. Unfortunately when I try to access the data R cannot see the table. When I run sqlTables it shows the worksheet as a SYSTEM TABLE instead of as a TABLE that I can access. I am fairly cer

Re: [R] comparison of packages for Unit Root test

2005-06-30 Thread Bernhard Pfaff
Dear Amir, two more cents to add to Achim's comment: 1) Some of the functions contained in the fseries package are ported from either the tseries or the urca package. Hence, it might be more convenient to you by just utilsing the fseries package. 2) A GUI for the Rcmdr package is shipped withi

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Deepayan Sarkar
On 6/30/05, Douglas Bates <[EMAIL PROTECTED]> wrote: > This is slightly off-topic but I would be interested in whether anyone > has succeeded in creating a filter expression for Google's gmail > system that will select messages sent through the R-help and R-devel > lists. It seems as if it should

Re: [R] Help with stripplot

2005-06-30 Thread Deepayan Sarkar
On Thursday 30 June 2005 11:40, Ghosh, Sandeep wrote: > Thanks for the prompt reply. I need some more help. I want the datapoints > for each group to show up in a different color, like all wt data points to > be green, het to be blue and hom to be red. Also I need the median point of > all the data

Re: [R] Is.integer and testing for integers

2005-06-30 Thread Prof Brian Ripley
That allows values just bigger than an integer but not just less than an integer. Also, since .Machine$double.eps is a relative tolerance, there are no non-integers greater than one meeting the criterion, and the only non-integers it lets through are like > is.int(c(1e-20, -1e-20)) [1] TRUE FA

Re: [R] parsing '...' function argument?

2005-06-30 Thread Berton Gunter
See pages 45 and 46 of V&R's S PROGRAMMING for a definitive discussion of how to do this. (Confession: I treat anything that V&R say as definitive). Cheers, Bert Gunter > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gabor > Grothendieck > Sent

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Matthew Nelson
A clarification: this only works properly when the "To" addresses are in separate filters. Sorry for the confusion. Matt On 6/30/05, Matthew Nelson <[EMAIL PROTECTED]> wrote: > Doug, > > I was able to accomplish this for r-help by filtering on the "To" > field with the following addresses: > r-

Re: [R] mApply instead of by ???

2005-06-30 Thread Frank E Harrell Jr
Marten Winter wrote: Now that's a brief note. mApply in the Hmisc package may have large speed advantages over by for large datasets. Also look at the summarize function in Hmisc, which uses mApply. -- Frank E Harrell Jr Professor and Chair School of Medicine

Re: [R] Is.integer and testing for integers

2005-06-30 Thread Sundar Dorai-Raj
Tuszynski, Jaroslaw W. wrote: > Hi, > > I was trying to figure out if there is a function in R that tests if R > object contains only integers. I though "is.integer" would be it, but this > function only checks "whether its argument is of integer type or not". As a > result > x = (1:5)^2

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Matthew Nelson
Doug, I was able to accomplish this for r-help by filtering on the "To" field with the following addresses: r-help@stat.math.ethz.ch, [EMAIL PROTECTED] I created this a week ago and it has so far filtered every mailing list messages successfully. Gmail conversations are a wonderful way to catch

[R] Is.integer and testing for integers

2005-06-30 Thread Tuszynski, Jaroslaw W.
Hi, I was trying to figure out if there is a function in R that tests if R object contains only integers. I though "is.integer" would be it, but this function only checks "whether its argument is of integer type or not". As a result x = (1:5)^2 is.integer(x) Returns false. Of cou

[R] R-Aqua can't open history file

2005-06-30 Thread McGee, Monnie
Dear List, I am running R-Aqua 2.1.0 on a powerbook with Mac OS/X 10.3.9. Here is what I get when I type "version" at the R-prompt. platform powerpc-apple-darwin7.9.0 arch powerpc os darwin7.9.0 system powerpc, darwin7.9.0 status Patched

[R] Relationship between dyn.load and library.dynam

2005-06-30 Thread Campbell
I am a little confused about the relationship between library.dynam and dyn.load >From the documentation: library.dynam(chname, Load the specified file of compiled code if it has not been loaded already, or unloads it. Where chname is a character string naming a shared library to load. and dyn

Re: [R] deal package

2005-06-30 Thread Weiwei Shi
I was there and subscribed to the list. But thanks anyway for the info. I will forward this question to there. I just wished I could get some suggestion too from here. On 6/30/05, Mike Waters <[EMAIL PROTECTED]> wrote: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECT

Re: [R] deal package

2005-06-30 Thread Mike Waters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uwe Ligges Sent: 30 June 2005 10:44 To: Weiwei Shi Cc: R-help@stat.math.ethz.ch Subject: Re: [R] deal package Weiwei Shi wrote: > Hi, > I am wondering if anyone here used deal package in R to do the > bayes

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Douglas Bates
On 6/30/05, ecoinfo <[EMAIL PROTECTED]> wrote: > definitely not true. There are only emails from r-help and r-devel lists in > my R lable. I just sent an email with the subject "Rare book" to myself, and > it didnot go to my R lable. I should have checked more carefully. The subject 'Rare book' w

Re: [R] Linear Models with mean as Intercept.

2005-06-30 Thread Sundar Dorai-Raj
Ghislain Vieilledent wrote: > Dear advanced statisticians, > > ***Objectif > > I try to set up linear models with mean as intercept: > Answer: y > Variable: x, as factor of two modalities: x(1), x(2). > > I would like to have a model as: > y = mean(y)+A(i)+residuals, > with i in (1

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread ecoinfo
definitely not true. There are only emails from r-help and r-devel lists in my R lable. I just sent an email with the subject "Rare book" to myself, and it didnot go to my R lable. On 6/30/05, Douglas Bates <[EMAIL PROTECTED]> wrote: > > On 6/30/05, ecoinfo <[EMAIL PROTECTED]> wrote: > > The s

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Douglas Bates
On 6/30/05, ecoinfo <[EMAIL PROTECTED]> wrote: > The subject keywords in my filter is > > "[R]" OR "[Rd]" > > and it works well. It may appear to be working but I think the '[' and ']' are ignored and the filter will select messages with subjects like 'Rare books'. > > On 6/30/05, Dou

Re: [R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread ecoinfo
The subject keywords in my filter is "[R]" OR "[Rd]" and it works well. On 6/30/05, Douglas Bates <[EMAIL PROTECTED]> wrote: > > This is slightly off-topic but I would be interested in whether anyone > has succeeded in creating a filter expression for Google's gmail > system that will select

Re: [R] plot (log scale on y-axis)

2005-06-30 Thread Jing Shen
Thanks to all of you! Yes, I want to get the axis labels to be powers of 10. I am going to try the code you recommended. Thanks a lot, Jing On 6/30/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On 6/29/05, Jing Shen <[EMAIL PROTECTED]> wrote: > > I am planning to plot my data on log scale (y

Re: [R] randomForest error

2005-06-30 Thread Liaw, Andy
The limitation comes from the way categorical splits are represented in the code: For a categorical variable with k categories, the split is represented by k binary digits: 0=right, 1=left. So it takes k bits to store each split on k categories. To save storage, this is `packed' into a 4-byte in

Re: 答复: [R] fail in addin g library in new version.

2005-06-30 Thread Gabor Grothendieck
It seems one must use 'R CMD install ...' where the CMD must be capitalized. If CMD is not capitalized then one gets the behavior you got. On 6/30/05, ecoinfo <[EMAIL PROTECTED]> wrote: > It is interesting that in my PC > > >R cmd > > is same as > > >R > > Which leads me into the R inter

[R] randomForest error

2005-06-30 Thread Arne.Muller
Hello, I'm using the random forest package. One of my factors in the data set contains 41 levels (I can't code this as a numeric value - in terms of linear models this would be a random factor). The randomForest call comes back with an error telling me that the limit is 32 categories. Is there

Re: [R] Linear Models with mean as Intercept.

2005-06-30 Thread Ingmar Visser
you could model: (y-mean(y))~x hth, ingmar > From: Ghislain Vieilledent <[EMAIL PROTECTED]> > Date: Thu, 30 Jun 2005 15:35:30 +0200 > To: r-help@stat.math.ethz.ch > Subject: [R] Linear Models with mean as Intercept. > > *** Questions *** > How can I obtain a predictive model y=mean(y)

[R] how to call egarch of sas in R

2005-06-30 Thread khobson
>From past posts: There are a number of GARCH models available in the fSeries package -- including models with t an skew-t distributions. mailto:[EMAIL PROTECTED] Kenneth Ray Hobson, P.E. Oklahoma DOT - QA & IAS Manager 200 N.E. 21st Street Oklahoma City, OK 73105-3204 (405) 522-4985, (405) 5

[R] Linear Models with mean as Intercept.

2005-06-30 Thread Ghislain Vieilledent
Dear advanced statisticians, ***Objectif I try to set up linear models with mean as intercept: Answer: y Variable: x, as factor of two modalities: x(1), x(2). I would like to have a model as: y = mean(y)+A(i)+residuals, with i in (1,2) and A(1) coefficient for x(1) and A(2) coefficie

Re: 答复: [R] fail in addin g library in new version.

2005-06-30 Thread ecoinfo
It is interesting that in my PC >R cmd is same as >R Which leads me into the R interface. -- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\xiaohuadai>r c

[R] mApply instead of by ???

2005-06-30 Thread Marten Winter
__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] installation error

2005-06-30 Thread Douglas Bates
On 6/30/05, orkun <[EMAIL PROTECTED]> wrote: > hello > > when I follow this procedure: > ~~ > rS <- "http://godel.cs.bilgi.edu.tr/mirror/cran/src/contrib/"; > install.packages(c("Matrix"), repos=rS, dependencies=TRUE) > ~~ > > installation gives this error: > ~ > make:

Re: [R] Graphically centering confidence interval in barplot

2005-06-30 Thread Marc Schwartz
On Thu, 2005-06-30 at 14:40 +0200, Smit, R. (Robin) wrote: > Hello, > > I have got a simple "cosmetic" question. > I have created a bar plot with confidence intervals using: > > barplot(mean, ylim = c(0,0.2), las = 3, space = 0) > > arrows(1:17 ,X95p_low, 1:17, X95p_high, length = 0.07, angle

[R] [OT] gmail filter for R-help and R-devel lists

2005-06-30 Thread Douglas Bates
This is slightly off-topic but I would be interested in whether anyone has succeeded in creating a filter expression for Google's gmail system that will select messages sent through the R-help and R-devel lists. It seems as if it should be easy to select on '[R]' or '[Rd]' in the subject line but

[R] Graphically centering confidence interval in barplot

2005-06-30 Thread Smit, R. \(Robin\)
Hello, I have got a simple "cosmetic" question. I have created a bar plot with confidence intervals using: barplot(mean, ylim = c(0,0.2), las = 3, space = 0) arrows(1:17 ,X95p_low, 1:17, X95p_high, length = 0.07, angle = 90, code = 3, lty = 1) Unfortunately, the confidence bars align with

Re: [R] download.file() / install.packages() from a url with a username and password

2005-06-30 Thread Prof Brian Ripley
On Thu, 30 Jun 2005, John Marsland wrote: > I am trying to create a repository for my own packages as an easy way > to auto install packages on a number of servers. > > Obviously, I am able to connect using install.packages() to CRAN > without problems but when I specify my own repos I get an erro

Re: [R] parsing '...' function argument?

2005-06-30 Thread Gabor Grothendieck
On 6/30/05, Oleg Sklyar <[EMAIL PROTECTED]> wrote: > Dear community, > > I am writing a wrapper for '[' operator, which is a generic method > declared as function(x, i, j, ..., drop). It turns out that I need to > parse the '...' argument and this is where I am stuck. Generally what I > need is th

Re: [R] plot (log scale on y-axis)

2005-06-30 Thread Gabor Grothendieck
On 6/29/05, Jing Shen <[EMAIL PROTECTED]> wrote: > I am planning to plot my data on log scale (y-axis). There is a > parameter in plot function, which is > plot( ..., log="y", ...) > While, the problem is that it is with base of e. Is there a way to let > me change it to 10 instead of e? > Is you

Re: 答复: [R] fail in addin g library in new version.

2005-06-30 Thread Gabor Grothendieck
On 6/30/05, Ivy_Li <[EMAIL PROTECTED]> wrote: > Dear Gabor, >Thank your for helping me so much! >I have loaded R the newest version 2.1.1. Then I setup it in the path > of D:\program files\R\ > 1. unpack tools.zip into c:\cygwin > 2. install Active perl in c:\Perl > 3. install the

[R] parsing '...' function argument?

2005-06-30 Thread Oleg Sklyar
Dear community, I am writing a wrapper for '[' operator, which is a generic method declared as function(x, i, j, ..., drop). It turns out that I need to parse the '...' argument and this is where I am stuck. Generally what I need is the following. Say the call is obj[1, 1, 1:10, 3] - here '1:10, 3

Re: [R] Memory Management under Linux: Problems to allocate large amounts of data

2005-06-30 Thread Dubravko Dolic
Dear Peter, AMD64 and EM64T (Intel) were designed as 32bit CPUs which are able to address 64bit registers. So they are nut "pure" 64bit Systems. This is why they are much cheaper than a real 64bit machine. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auf

[R] download.file() / install.packages() from a url with a username and password

2005-06-30 Thread John Marsland
I am trying to create a repository for my own packages as an easy way to auto install packages on a number of servers. Obviously, I am able to connect using install.packages() to CRAN without problems but when I specify my own repos I get an error: > install.packages(pkgs, repos="http://some

Re: [R] plot (log scale on y-axis)

2005-06-30 Thread Uwe Ligges
Jing Shen wrote: > I am planning to plot my data on log scale (y-axis). There is a > parameter in plot function, which is > plot( ..., log="y", ...) > While, the problem is that it is with base of e. Is there a way to let > me change it to 10 instead of e? But this is simpley a fixed multiple, a

Re: [R] Memory Management under Linux: Problems to allocate large amounts of data

2005-06-30 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > On Thu, 30 Jun 2005, Dubravko Dolic wrote: > > > Dear Prof. Ripley. > > > > Thank You for Your quick answer. Your right by assuming that we run > > R on a 32bit System. My technician tried to install R on a emulated > > 64bit Opteron machine which l

Re: [R] deal package

2005-06-30 Thread Uwe Ligges
Weiwei Shi wrote: > Hi, > I am wondering if anyone here used deal package in R to do the > bayesian network. I am curious about its scalability: how many > variables and how many observations can it handle in a reasonable > time. If you have some good experience, please share your data > configura

Re: 答复: [R] fail in adding library in new version.

2005-06-30 Thread Uwe Ligges
Ivy_Li wrote: > Dear Gabor, Thank your for helping me so much! I have loaded R the > newest version 2.1.1. Then I setup it in the path of D:\program > files\R\ 1. unpack tools.zip into c:\cygwin 2. install Active perl in > c:\Perl 3. install the mingw32 in c:\mingwin 4. add > "c:\cygwin; c:\ming

Re: RE : [R] Dispersion parameter in Neg Bin GLM

2005-06-30 Thread Prof Brian Ripley
This does not appear to be the same model as STATA. Your model (as documented) has dispersion (var/mean) of 1 + phi*mu, so you need to constrain phi = a/mu to get a constant dispersion. The output shown is not at all consistent with that. On Thu, 30 Jun 2005, Lesnoff, Matthieu (ILRI) wrote: >

[R] installation error

2005-06-30 Thread orkun
hello when I follow this procedure: ~~ rS <- "http://godel.cs.bilgi.edu.tr/mirror/cran/src/contrib/"; install.packages(c("Matrix"), repos=rS, dependencies=TRUE) ~~ installation gives this error: ~ make: *** [Matrix.so] Error 1 ERROR: compilation failed for package 'Mat

[R] request/suggestion: modified names

2005-06-30 Thread Ritter, Christian C GSMCIL-GSTMS/2
For some time now I use a modified version of names (extract direction) of the following type: Names<- function (x,filter="^") { grep(filter,names(x),value=TRUE) } Request: Has anyone already written a version which goes the other way (that is, which allows assignment of the type Names(x

Re: [R] Memory Management under Linux: Problems to allocate large amounts of data

2005-06-30 Thread Prof Brian Ripley
On Thu, 30 Jun 2005, Dubravko Dolic wrote: Dear Prof. Ripley. Thank You for Your quick answer. Your right by assuming that we run R on a 32bit System. My technician tried to install R on a emulated 64bit Opteron machine which led into some trouble. Maybe because the Opteron includes a 32bit

Re: [R] Memory Management under Linux: Problems to allocate large amounts of data

2005-06-30 Thread Dubravko Dolic
Dear Prof. Ripley. Thank You for Your quick answer. Your right by assuming that we run R on a 32bit System. My technician tried to install R on a emulated 64bit Opteron machine which led into some trouble. Maybe because the Opteron includes a 32bit Processor which emulates 64bit (AMD64 x86_64).