RE: [R] How to correct this

2004-11-21 Thread Mulholland, Tom
Taking note of the first post, this is what I assume you wish. Note Paul's caveat in the help file "If you resize the device, all bets are off!" require(gridBase) x<-seq(0,1,0.2) y<-x pred<-matrix(c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.7, 0.7, 0.7, 0.7, 0.5, 0.5, 0.7, 0.9, 0.9, 0.7, 0.5, 0.5, 0.

Re: [R] variable object naming

2004-11-21 Thread Gabor Grothendieck
Benjamin M. Osborne uvm.edu> writes: : : Is it possible to give a temporary object a name that varies with each run of a : foreloop? For example, I want to fill a matrix every time I run a loop, and I : want a new matrix with each run, with an appropriate new name. : i.e.: : for(i in 1:5){...

RE: [R] How to correct this

2004-11-21 Thread Jin.Li
Hi there, I would like to add a few circles to the following image: x<-seq(0,1,0.2) y<-x pred<-matrix(c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.7, 0.7, 0.7, 0.7, 0.5, 0.5, 0.7, 0.9, 0.9, 0.7, 0.5, 0.5, 0.7, 0.9, 0.9, 0.7, 0.5, 0.5, 0.7, 0.7, 0.7, 0.7, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5), 6, 6) image(

[R] variable object naming

2004-11-21 Thread Benjamin M. Osborne
Is it possible to give a temporary object a name that varies with each run of a foreloop? For example, I want to fill a matrix every time I run a loop, and I want a new matrix with each run, with an appropriate new name. i.e.: for(i in 1:5){... matrix.i<-some values ...} so that in the end I wou

Re: [R] rhyp function from fBasics

2004-11-21 Thread Sundar Dorai-Raj
Erin Hodgess wrote: Dear R People: There is a function from the fBasics library to get the probability and quantiles for the hyperbolic probability function. Is there one that will estimate parms of the hyperbolic probability function from a data set, please? Thanks in advance! Sincerely, Erin Hod

Re: [R] How to correct this

2004-11-21 Thread Sundar Dorai-Raj
[EMAIL PROTECTED] wrote: Hi there, I tried to add a few circles on an existing figure using the following codes grid.circle(x=0.5, y=0.5, r=0.1, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.3, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.5, draw=TRUE, gp=gpar(col=5))

Re: [R] rhyp function from fBasics

2004-11-21 Thread David Scott
On Sun, 21 Nov 2004, Erin Hodgess wrote: Dear R People: There is a function from the fBasics library to get the probability and quantiles for the hyperbolic probability function. Is there one that will estimate parms of the hyperbolic probability function from a data set, please? Look at the packag

[R] rhyp function from fBasics

2004-11-21 Thread Erin Hodgess
Dear R People: There is a function from the fBasics library to get the probability and quantiles for the hyperbolic probability function. Is there one that will estimate parms of the hyperbolic probability function from a data set, please? Thanks in advance! Sincerely, Erin Hodgess mailto: [EMA

Re: [R] Installing rgl in R2.0.1

2004-11-21 Thread Duncan Murdoch
On Mon, 22 Nov 2004 13:10:59 +1300 (NZDT), "Richard A. O'Keefe" <[EMAIL PROTECTED]> wrote: >I'm running R2.0.1 under Solaris 2.9 on a SunBlade 100. >When I installed it, I set things up to use the Sun compilers >cc, CC, f95 with the options recommended in the installation and >administration guide

[R] How to correct this

2004-11-21 Thread Jin.Li
Hi there, I tried to add a few circles on an existing figure using the following codes grid.circle(x=0.5, y=0.5, r=0.1, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.3, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.5, draw=TRUE, gp=gpar(col=5)) points(0.5, 0.5, col

Re: [R] RE : Create sequence for dataset

2004-11-21 Thread Richard A. O'Keefe
[EMAIL PROTECTED] (Stella) asked I want to create a sequence of numbers for the multiple records of individual animal in my dataset. The SAS code below will do the trick, but I want to learn to do it in R. Can anyone help ? data ht&ssn; set ht&ssn;

Re: [R] Running R from CD?

2004-11-21 Thread bogdan romocea
Better install and run R from a USB flash drive. This will save you the trouble of re-writing the CD as you upgrade and install new packages. Also, you can simply copy the R installation on your work computer (no install rights needed); R will run. HTH, b. From: Hans van Walen Date: Fri 27 Aug

Re: [R] How to change the significant codes default?

2004-11-21 Thread Richard A. O'Keefe
Shigeru Mase <[EMAIL PROTECTED]> wrote: I am posting this question on behalf of a Japanese R user who wants to know how to change the siginificant codes default. It's the line symbols = c("***", "**", "*", ".", " ")) in printCoefmat(), isn't it? (summary.lm makes

[R] Installing rgl in R2.0.1

2004-11-21 Thread Richard A. O'Keefe
I'm running R2.0.1 under Solaris 2.9 on a SunBlade 100. When I installed it, I set things up to use the Sun compilers cc, CC, f95 with the options recommended in the installation and administration guide. Until today, no worries. With all this discussion about R GUIs I thought I'd give R Commande

[R] adjacent category model in ordinal regression

2004-11-21 Thread yyan liu
Hi: I want to analyze some multinomial data. And the response has a natural ordinal sturcture. I want to fit a adjacent category model to the data by logit, probit and complementary log-log link functions. I found a package "VGAM" (www.stat.auckland.ac.nz/~yee/VGAM/ ) whose function "acat" can fi

Re: [R] Location of grobs etc on lattice output

2004-11-21 Thread Deepayan Sarkar
On Sunday 21 November 2004 16:35, John Maindonald wrote: > I'm puzzled about side effects of trellis.unfocus(): > > The following runs without problem, though grid.text() does not > seem to do anything. (I'd thought that I had it working at one > point.) > > library(DAAG); library(lattice); l

Re: [R] Re: 3d Map with bars

2004-11-21 Thread Ray Brownrigg
> From: [EMAIL PROTECTED] > Date: Fri, 19 Nov 2004 16:53:12 -0500 > > Thanks for reply. I need to first draw the map of USA a perspective plot. > I guess thats where my problem was. > Try something like this: library(maps) states <- map("state", plot=F) x1 <- rep(0, 3) x2 <- rep(0, 3) maxz <-

Re: [R] RE : Create sequence for dataset

2004-11-21 Thread james . holtman
I think this might do it. > x.1 <- data.frame(x=sample(1:3,20,T), y=sample(10:12,20,T)) # create test data > x.1 # print it out x y 1 2 11 2 3 11 3 2 10 4 1 12 5 3 11 6 1 10 7 3 10 8 1 11 9 1 12 10 1 11 11 1 12 12 1 12 13 2 11 14 3 11 15 3 10 16 3 10 17 2 12 18 2 10 19 3 11 20 2

Re: [R] RE : Create sequence for dataset

2004-11-21 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Dear members, > > I want to create a sequence of numbers for the multiple records of > individual animal in my dataset. The SAS code below will do the trick, but > I want to learn to do it in R. Can anyone help ? > > data ht&ssn; > set ht&ssn; > by anml_key; > if firs

Re: [R] adjusting the map of France to 1830

2004-11-21 Thread Ray Brownrigg
> Date: Fri, 19 Nov 2004 15:59:25 -0500 > From: Michael Friendly <[EMAIL PROTECTED]> > > Here's what I tried. I can plot a selection of regions, but I > can't seem to remove an arbitrary list of region numbers, unless I've > done something wrong > by selecting the regions I want to plot with de

Re: [R] Location of grobs etc on lattice output

2004-11-21 Thread John Maindonald
I'm puzzled about side effects of trellis.unfocus(): The following runs without problem, though grid.text() does not seem to do anything. (I'd thought that I had it working at one point.) library(DAAG); library(lattice); library(grid) cuckoos.strip <- stripplot(species ~ length, xlab="", d

[R] RE : Create sequence for dataset

2004-11-21 Thread ssim
Dear members, I want to create a sequence of numbers for the multiple records of individual animal in my dataset. The SAS code below will do the trick, but I want to learn to do it in R. Can anyone help ? data ht&ssn; set ht&ssn; by anml_key; if first.anml_key then do; seq_ht_rslt=0; end; seq_ht_

[R] Your mail have been blocked

2004-11-21 Thread postmaster . par-msw
Your mail have been blocked __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Re: [R-sig-finance] Question about Exponential Weighted Moving Average (EWMA) in rmetrics.

2004-11-21 Thread Diethelm Wuertz
With the next release of Rmetrics the help page will extended in the following way: \item{lambda}{ a numeric value between zero and one giving the decay length of the exponential moving average. If an integer value greater than one is given, lambda is used as a lag of "n" p

Re: [R] How to change the significant codes default?

2004-11-21 Thread Gabor Grothendieck
Uwe Ligges statistik.uni-dortmund.de> writes: : : (Ted Harding) wrote: : : > On 20-Nov-04 Uwe Ligges wrote: : > : >>Shigeru Mase wrote: : >> : >>>Dear R experts, : >>> : >>>I am posting this question on behalf of a Japanese R user : >>>who wants to know how to change the siginificant codes def

RE: [R] Analysis of pre-calculated frequency distribution?

2004-11-21 Thread Dan Bolser
On Sun, 21 Nov 2004 [EMAIL PROTECTED] wrote: >On 21-Nov-04 Dan Bolser wrote: >> >> Sorry for the dumb question, but I cant work out how to do this. >> >> Quick version, >> >> How can I re-bin a given frequency distribution using new breaks >> without reference to the original data? Given dist

Re: [R] sas vs. R

2004-11-21 Thread Marc Schwartz
On Sun, 2004-11-21 at 09:15 -0800, [EMAIL PROTECTED] wrote: > I wish some of the corporations or > universities that are using SAS would fund the R group a little, too. We do via the R Foundation! http://www.r-project.org/nosvn/foundation/memberlist.html Talk to the folks at your institutions..

RE: [R] How to change the significant codes default?

2004-11-21 Thread Liaw, Andy
> From: Uwe Ligges > > (Ted Harding) wrote: > > > On 20-Nov-04 Uwe Ligges wrote: > > > >>Shigeru Mase wrote: > >> > >>>Dear R experts, > >>> > >>>I am posting this question on behalf of a Japanese R user > >>>who wants to know how to change the siginificant codes default. > >>>As you know, R's d

Re: [R] How to change the significant codes default?

2004-11-21 Thread Ted Harding
On 21-Nov-04 Uwe Ligges wrote: > (Ted Harding) wrote: >> [...] >> Then, when you want your private version, simply do >> >> source("printCoefmat.R") >> >> and it will overlay the original version. (Experts will have >> to advise whether this clashes with any "namespace" issues. >> On my reading

[R] sas vs. R

2004-11-21 Thread ivo_welch-rstat8783
SAS * better manuals. * tech support for most universities contracted into the price, thus for researchers. * batch orientation. if you have to handle data sets that are as large as your memory, SAS generally does it better. It seems to be an "n-pass design." Years ago, when memory was expens

Re: [R] SAS or R software

2004-11-21 Thread Frank E Harrell Jr
Michael Friendly wrote: I can't resist dipping my oar in here: For me, some significant advantages of SAS are - Ability to input data in almost *any* conceivable form using the combination of features available through input/infile statements, SAS informats and formats, data step programming, etc

Re: [R] Help with ooplot(gplots) and error bars

2004-11-21 Thread Marc Schwartz
On Sun, 2004-11-21 at 12:31 +0100, Jean-Louis Abitbol wrote: > Dear All > > I am trying to graph a proportion and CI95% by a factor with ooplot (any > other better solution ?) > > It works well until I try to add the confidence interval. > > this is the error message and and a description of the

RE: [R] Analysis of pre-calculated frequency distribution?

2004-11-21 Thread Ted Harding
On 21-Nov-04 Dan Bolser wrote: > > Sorry for the dumb question, but I cant work out how to do this. > > Quick version, > > How can I re-bin a given frequency distribution using new breaks > without reference to the original data? Given distribution has > integer valued bins. > > > Long versi

Re: [R] SAS or R software

2004-11-21 Thread Michael Friendly
I can't resist dipping my oar in here: For me, some significant advantages of SAS are - Ability to input data in almost *any* conceivable form using the combination of features available through input/infile statements, SAS informats and formats, data step programming, etc. Dataset manipulation

Re: [R] How to change the significant codes default?

2004-11-21 Thread Uwe Ligges
(Ted Harding) wrote: On 20-Nov-04 Uwe Ligges wrote: Shigeru Mase wrote: Dear R experts, I am posting this question on behalf of a Japanese R user who wants to know how to change the siginificant codes default. As you know, R's default significant codes are: Signif. codes: 0 `***' 0.001 `**' 0.01 `

Re: [R] ERROR: installing package indices failed

2004-11-21 Thread Uwe Ligges
Sigal Blay wrote: gregmisc is installed yet the problem persist. I installed gregmisc using install.packages(c("combinat","gregmisc","genetics"),lib='/home/sblay/lib') (on the same library path where I am trying to install LDheatmap) Have you set the environment variable R_LIBS appropriately? Uwe

Re: [R] Error with strwidth after lattice graphic drawn

2004-11-21 Thread Frank E Harrell Jr
Uwe Ligges wrote: Prof Brian Ripley wrote: On Sat, 20 Nov 2004, Frank E Harrell Jr wrote: In platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major2 minor0.1 year 2004 month11 day 15 language R I'm getting an error when using strwidth

Re: [R] Help with ooplot(gplots) and error bars

2004-11-21 Thread Frank E Harrell Jr
Jean-Louis Abitbol wrote: Dear Pr Harrel, Thanks for your help at this occasion as well as for previous questions to the list. I just looked at the example in your intro doc. However I am dealing with proportions (ie % of patients responding to a given treatment). In this case I am not sure I can u

[R] Analysis of pre-calculated frequency distribution?

2004-11-21 Thread Dan Bolser
Sorry for the dumb question, but I cant work out how to do this. Quick version, How can I re-bin a given frequency distribution using new breaks without reference to the original data? Given distribution has integer valued bins. Long version, I am loading a frequency table into R from a fil

Re: [R] Help with ooplot(gplots) and error bars

2004-11-21 Thread Frank E Harrell Jr
Jean-Louis Abitbol wrote: Dear All I am trying to graph a proportion and CI95% by a factor with ooplot (any other better solution ?) It works well until I try to add the confidence interval. this is the error message and and a description of the data: > dat1 PointEst TT1 1 3.6 TT

[R] Two factor ANOVA in lme

2004-11-21 Thread nat
I want to specify a two-factor model in lme, which should be easy? Here's what I have: factor 1 - treatment FIXED (two levels) factor 2 - genotype RANDOM (160 genotypes in total) I need a model that tells me whether the treatment, genotype and interaction terms are significant. I have been readi

[R] Help with ooplot(gplots) and error bars

2004-11-21 Thread Jean-Louis Abitbol
Dear All I am trying to graph a proportion and CI95% by a factor with ooplot (any other better solution ?) It works well until I try to add the confidence interval. this is the error message and and a description of the data: > dat1 PointEst TT1 1 3.6 TT2 2 5.0 TT3 3

Re: [R] SAS or R software

2004-11-21 Thread Thomas Schönhoff
Hello, BXC (Bendix Carstensen) schrieb: Two major advantages of SAS that seems to have been overlooked in the previous replies are: 1) The data-set language is SAS for data manipulation is more human-readable than R-code in general. R is not a definite write-only laguage as APL, but in parti