RE: [R] A suggestion regarding multiple replies

2003-11-17 Thread Mulholland, Tom
As with most of the replies so far, I enjoy the way the list works. A couple of observations however are that it is evident that off list replies already happen and imho more importantly is the fact that initially quite straightforward queries can turn into something much more interesting. I find

[R] ?for

2003-11-17 Thread Angel
I have always been intrigued by why ?for (or ?if,?while,etc) leave R wanting for more: ?for + I know the help for these is in ?Control, but I sometimes make the mistake of typing ?for instead. What is R expecting me to say to finish the statement? Thanks, Angel [[alternative HTML

Re: [R] ?for

2003-11-17 Thread Prof Brian Ripley
You have typed a syntactically incomplete statement: this is explained in ?help. Hint: ?for and help(for) work. On Sun, 16 Nov 2003, Angel wrote: I have always been intrigued by why ?for (or ?if,?while,etc) leave R wanting for more: ?for + I know the help for these is in ?Control, but I

[R] CLARA

2003-11-17 Thread optimisation1 . stagiaire
I need informations about the clara routine. The on-line doc say that the argument stand is a logical, indicating if the measurements in x are standardized before calculating the dissimilarities. Measurements are standardized for each variable (column), by subtracting the variable's mean

[R] Symbolic math?

2003-11-17 Thread Hank Stevens
Hi Folks, I am using Windows 2000 and was wondering what (Open Source) software R users use or might recommend for symbolic computations (aside from the ol' noggin, e.g., Maxima, Mathomatic) . Thanks, Hank Dr. Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami

Re: [R] ?for

2003-11-17 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: You have typed a syntactically incomplete statement: this is explained in ?help. Hint: ?for and help(for) work. Further hint: ? is an operator, syntactically similar to + and -. You can apply operators to the result of a for loop. Consider for

[R] function identify()

2003-11-17 Thread guerreau
How can I control the size of the characters when using the function identify() ? Many thanks in advance. alain GUERREAUCNRS-Paris [EMAIL PROTECTED] [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list

Re: [R] Symbolic math?

2003-11-17 Thread Arne Henningsen
Hi, I sometimes use MuPAD (www.mupad.com). Unfortunately, it is not Open Source, but most versions are free of charge for non-commercial use (see http:// www.sciface.com/personal.shtml). Arne On Monday 17 November 2003 11:37, Hank Stevens wrote: Hi Folks, I am using Windows 2000 and was

Re: [R] Initial size of graphics window

2003-11-17 Thread Martin Maechler
Paul == Paul Murrell [EMAIL PROTECTED] on Mon, 17 Nov 2003 09:07:29 +1300 writes: Paul Hi Paul Remington, Richard wrote: Wolfgang Zocher wrote: Hi, using par() a window is opened which is too large for my monitor. Is there any chance to change

[R] Rweb: how to use source()

2003-11-17 Thread Jonathan Baron
I cannot discover how to set or find the working directory in Rweb, so that I can source() a file from the server. The file I source() must refer to a data file in its directory. setwd() does not do anything, and getwd() says that the working directory is in /var/www/cgi-bin/ (on Linux). (I

[R] confint: which method attached?

2003-11-17 Thread Ulrich Halekoh
the function confint uses the profiling method of the function of the package MASS confint.glm even after the package has been detached! 1: might this be the intenden behavior? 2. How does the function remember its 'MASS' functionality after detaching the package? R: 1.8.0; Windows 2000

Re: [R] function identify()

2003-11-17 Thread Uwe Ligges
On Mon, 17 Nov 2003, guerreau wrote: How can I control the size of the characters when using the function identify() ? You cannot and found the bug mentioned in PR#660. Uwe Ligges Many thanks in advance. alain GUERREAUCNRS-Paris [EMAIL PROTECTED] [[alternative HTML

RE: [R] ISOdate() and strptime()

2003-11-17 Thread Simon Fear
I think I do understand how difficult dates are. All I'm saying is that by adopting a standard that is OS dependent (and hence, almost by definition, OS varying) you make R behave differently on different OSs - and that is NOT making R portable across multiple OSs. This is a theoretical whinge.

Re: [R] confint: which method attached?

2003-11-17 Thread Prof Brian D Ripley
On Mon, 17 Nov 2003, Ulrich Halekoh wrote: the function confint uses the profiling method of the function of the package MASS confint.glm even after the package has been detached! Why the exclamation mark? Note profile.glm is not actually in package:MASS (sic). Try looking for it:

Re: [R] Rweb: how to use source()

2003-11-17 Thread alessandro . semeria
It seem a user-permission problem. May be some mistake at Rweb configuration level (look at the RwebConfig file)? First you have to try R standalone. A.S. Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group),

[R] Generalized linear model

2003-11-17 Thread Marcos Sanches
Hi all! I am fitting a Poisson model, using the following command: fit2-glm(canc~id1+year1+time+lnpa,family=poisson) where 'id1', 'year1' and 'time' are factors. I defined them with: id1-C(factor(id1), treatment) and 'lnpa' is a continuous variable. The 'summary' function

Re: [R] ISOdate() and strptime()

2003-11-17 Thread RINNER Heinrich
I have followed with interest the discussion on date handling. I am no expert in these things; all I want to do is convert a character vector that has been read into R (and which may contain some erroneous dates) to a date format, and then do some work with it [e.g., use it in a plot]. Classes

Re: [R] Generalized linear model

2003-11-17 Thread Prof Brian Ripley
The second fit appeared to use a dataframe and the first did not. Try fit2-glm(canc~id1+year1+time+lnpa,family=poisson, subset=-18) On Mon, 17 Nov 2003, Marcos Sanches wrote: Hi all! I am fitting a Poisson model, using the following command:

RE: [R] Generalized linear model

2003-11-17 Thread Marcos Sanches
Ok, it worked!!! But what would be the command if I want to eliminate another point? I mean, two points at the same time. Thanks, Marcos -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 1:02 PM To: Marcos Sanches Cc:

[R] S Programming

2003-11-17 Thread Mohammad Ehsanul Karim
Dear all, I am thinking of writing my own functions in s-plus (or in R). I just know how to work with S-plus / R built-in functions. Therefore, I'm a beginner in S programming. I am looking for some on-line documentation that is well written about Programming in S language where

RE: [R] Generalized linear model

2003-11-17 Thread Prof Brian Ripley
On Mon, 17 Nov 2003, Marcos Sanches wrote: Ok, it worked!!! But what would be the command if I want to eliminate another point? I mean, two points at the same time. subset=-c(18,27) Thanks, Marcos -Original Message- From: Prof Brian Ripley [mailto:[EMAIL

[R] gradient option in nlm function

2003-11-17 Thread yuanji
Dear list members, I am trying to use nlm function to maximize a mixture likelihood of beta densities. There are five unknown parameters in the likelihood. Since I can get the analytic gradient, I attach the gradient attribute in my target likehood function. The code is as the following

Re: [R] S Programming

2003-11-17 Thread alessandro . semeria
Look at http://cran.r-project.org/other-docs.html A.S. Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group), Via Ciro Menotti 48, 48023 Marina di Ravenna (RA), Italy Tel. +39 544 536811 Fax. +39 544 538663

Re: [R] Generalized linear model

2003-11-17 Thread Spencer Graves
From ?glm, I find the following: subset: an optional vector specifying a subset of observations to be used in the fitting process. Thus, to delete observations 16 and 18, I can use the following: fit2-glm(canc~id1+year1+time+lnpa,family=poisson, subset=-c(16,18))

[R] Accents in R

2003-11-17 Thread Xavier Fernández i Marín
Hi, How can I include accents and signs like 'ñ' 'à' in the plots generated by R? I try, but R automatically transforms the name ex: countries - c(México, España) countries [1] M\216éxico Espa\216ña I've seen in some Spanish texts about R how is it normal to include labels of the plots and

Re: [R] gradient option in nlm function

2003-11-17 Thread Thomas W Blackwell
On Mon, 17 Nov 2003 [EMAIL PROTECTED] wrote: Dear list members, I am trying to use nlm function to maximize a mixture likelihood of beta densities. There are five unknown parameters in the likelihood. Since I can get the analytic gradient, I attach the gradient attribute in my target

Re: [R] gradient option in nlm function

2003-11-17 Thread yuanji
Oh, that's a typo. I passed the function target. Seems to me R requires some kind of specific syntex. Yuan Ji, Ph.D. Assistant Professor Department of Bistatistics The University of Texas M.D. Anderson Cancer Center 1515 Holcombe Blvd. - Unit 447

Re: [R] Accents in R

2003-11-17 Thread Salvatore Barbaro
Cf. expression() On Monday 17 November 2003 17:14, Xavier Fernández i Marín wrote: Hi, How can I include accents and signs like 'ñ' 'à' in the plots generated by R? I try, but R automatically transforms the name ex: countries - c(México, España) countries [1] M\216éxico Espa\216ña

RE: [R] Symbolic math?

2003-11-17 Thread Gabor Grothendieck
Depending on what you want to do ?deriv in R may be enough. --- Date: Mon, 17 Nov 2003 05:37:22 -0500 From: Hank Stevens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R] Symbolic math? Hi Folks, I am using Windows 2000 and was wondering what (Open Source) software R users use or

Re: [R] Accents in R

2003-11-17 Thread Peter Dalgaard
Xavier Fernández i Marín [EMAIL PROTECTED] writes: Hi, How can I include accents and signs like 'ñ' 'à' in the plots generated by R? I try, but R automatically transforms the name ex: countries - c(México, España) countries [1] M\216éxico Espa\216ña I've seen in some Spanish

Re: [R] Symbolic math?

2003-11-17 Thread Len Vir
Hi, Have you tried Yacas? Yacas is a general purpose easy to use Computer Algebra System . It is built on top of its own programming language designed for this purpose, in which new algorithms can easily be implemented. In addition, it comes with extensive documentation on the functionality

RE: [R] Rweb: how to use source()

2003-11-17 Thread Gabor Grothendieck
For the code, just copy and paste it through the clipboard into Rweb. For the data, you enter the URL in the area where Rweb says External Data Entry. Alternately, you can use the R dput command on your machine to turn the data into an R statement and then add it to the source file,

Re: [R] LOCF - Last Observation Carried Forward

2003-11-17 Thread Tony Plate
Here's a faster version of most.recent. It uses rep() in a vectorized manner. # Gabor Grothendieck's function: most.recent.cut - function(x) + as.numeric(as.vector(cut(seq(x),c(which(x),Inf),lab=which(x),right=F))) # Version that uses which() and vectorized rep() most.recent -

Re: [R] Accents in R

2003-11-17 Thread Ulises Mora Alvarez
Hello! If you are using a GNOME-Terminal or if you are running R inside Emacs just make yourself sure that you change the UTF-8 encoding before starting R. On Mon, 17 Nov 2003, Salvatore Barbaro wrote: Cf. expression() On Monday 17 November 2003 17:14, Xavier Fernández i Marín

RE: [R] A suggestion regarding multiple replies

2003-11-17 Thread kjetil
On 17 Nov 2003 at 15:08, Ted Harding wrote: On 15-Nov-03 Ted Harding wrote: And the following (in today's ?for thread) is a perfect example of what I mean: === From: Peter Dalgaard [EMAIL PROTECTED] To: Angel [EMAIL PROTECTED],

Re: [R] A suggestion regarding multiple replies

2003-11-17 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: Indeed! look at the following: test - function(x) invisible(x) test(9) - test(9) [1] -9 or even: +test(9) [1] 9 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Fwd: License Agreement

2003-11-17 Thread Sigrid Volko
*** Sigrid M. Volko, Ph.D. Assistant Director Office of Licensing and Technology Development Johns Hopkins University 100 N. Charles Street, 5th Floor Baltimore, MD 21201 phone: 410-516-4962 fax: 410-516-5113 This e-mail message

Re: [R] cumulative distribution functions

2003-11-17 Thread Duncan Murdoch
On Mon, 17 Nov 2003 18:30:08 -, Monica Palaseanu-Lovejoy [EMAIL PROTECTED] wrote : hi y'all, I am wondering if there is any special command, function, package, etc to help me doing a cumulative distribution function, with y-scale - probability scale. I tried the help in R and i got the

Re: [R] ?for

2003-11-17 Thread Prof Brian Ripley
Well ^C or ESC (on Windows GUI) is the answer I would give. On Tue, 18 Nov 2003, Ray Brownrigg wrote: Peter Dalgaard [EMAIL PROTECTED] writes: Prof Brian Ripley [EMAIL PROTECTED] writes: You have typed a syntactically incomplete statement: this is explained in ?help. Hint:

[R] image processing

2003-11-17 Thread Charles Annis, P.E.
Greetings, R-ians: I am embarking on a project that I anticipate will require cleaning up some noisy 2-D images, and would like to use MCMC to that end. But I don't want to start from scratch if someone if the R-community has already plowed that field. (I love mixed metaphors.) Anyway, any

[R] rpart postscript graphics, Mac OS

2003-11-17 Thread Kaiser Fung
I am running R on Mac OS X 10.2x. When I create postscript graphics of rpart tree objects, a tiny part of the tree gets trimmed off, even when it has only a few terminal nodes. This happens even without fancy but worse if fancy=T. (This doesn't happen with boxplot, scatter plots, etc.) How do

Re: [R] ?for

2003-11-17 Thread Marc Schwartz
On Mon, 2003-11-17 at 14:27, Prof Brian Ripley wrote: Well ^C or ESC (on Windows GUI) is the answer I would give. On Tue, 18 Nov 2003, Ray Brownrigg wrote: Peter Dalgaard [EMAIL PROTECTED] writes: Prof Brian Ripley [EMAIL PROTECTED] writes: You have typed a syntactically

[R] \preformatted and $

2003-11-17 Thread Arend P. van der Veen
Hi, I have been developing a package in R and have been working on documentation. I have a \details function that contains the following: \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } } When I run R CMD check I get an error while checking the manual. If I

[R] Looking for recommendations for optimal memory settings

2003-11-17 Thread Busch, Joe
We have a Windows 2000 operating system and I need to configure the workstations. What are your recommendations for users with very large data sets (300Mb)? The systems are Dell GX240s with 512 Mbs of Ram. What command line or environment variables work best? Sincerely, Joe Busch Urban

[R] reordering numbers in a vector

2003-11-17 Thread Merrill Birkner
Suppose you initially create a vector a-c(5,1,3,4). You want to sort the vector before performing specific calculations to the numbers. You now have the vector [1,3,4,5]. How can you now revert back to your initial ordering of [5,1,3,4]? Is there a specific command or 'sort by' command that one

Re: [R] reordering numbers in a vector

2003-11-17 Thread Sundar Dorai-Raj
Merrill Birkner wrote: Suppose you initially create a vector a-c(5,1,3,4). You want to sort the vector before performing specific calculations to the numbers. You now have the vector [1,3,4,5]. How can you now revert back to your initial ordering of [5,1,3,4]? Is there a specific command or

Re: [R] reordering numbers in a vector

2003-11-17 Thread Giovanni Petris
If you need only to sort a vector, then sort() does the job. To go back to the original vector, the following may work: x - unique(rpois(30,5)) x [1] 8 5 3 4 6 9 2 7 x.sorted - sort(x) x.sorted [1] 2 3 4 5 6 7 8 9 x.sorted[order(order(x))] [1] 8 5 3 4 6 9 2 7 HTH, Giovanni Date: Mon, 17

[R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
Hi, I'm trying to write a function that will divide a given range of numbers into 3 sets using sample(), without repetition. Currently I'm trying this approach: r - 1:10 s1 - sample(r,size=3) Next, I want to remove the selected elements from r and sample() from the remainder. r - r[ -(r=s1) ]

Re: [R] sampling without repetition

2003-11-17 Thread Thomas W Blackwell
Rajarshi - Do you want three sets, three disjoint sets, or sets of size three ? It's not clear what you are attempting to do. - tom blackwell - u michigan medical school - ann arbor - On Mon, 17 Nov 2003, Rajarshi Guha wrote: Hi, I'm trying to write a function that will divide a

Re: [R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
On Mon, 2003-11-17 at 20:01, Thomas W Blackwell wrote: Rajarshi - Do you want three sets, three disjoint sets, or sets of size three ? It's not clear what you are attempting to do. Sorry about that. I wanted to select 3 disjoint sets from a supplied vector of numbers. My initial example

Re: [R] sampling without repetition

2003-11-17 Thread Thomas W Blackwell
Rajarshi - To obtain three disjoint subsets, I would do indic - sample(seq(3), length(r), TRUE) s1 - r[indic == 1] s2 - r[indic == 2] s3 - r[indic == 3] Note that the sizes of the three subsets have a joint multinomial distribution with parameters prob = c(1/3, 1/3, 1/3) and n = length(r).

Re: [R] sampling without repetition

2003-11-17 Thread Tony Plate
r - 1:30 # Random allocation to sets tapply(r, sample(1:3,length(r),rep=T), c) $1 [1] 1 3 8 12 15 16 18 20 21 25 29 $2 [1] 2 5 6 7 9 10 13 14 17 19 22 27 30 $3 [1] 4 11 23 24 26 28 # Equal size sets (approximately) tapply(r, sample(seq(length(r))%%3), c) $0 [1] 1 6 9 10 12 15

Re: [R] sampling without repetition

2003-11-17 Thread Duncan Murdoch
On 17 Nov 2003 20:07:08 -0500, you wrote: Sorry about that. I wanted to select 3 disjoint sets from a supplied vector of numbers. My initial example had r - 1:300 but there is no guarantee that r will contain a consecutive sequence of numbers. It's still not clear whether the 3 sets should

Re: [R] rpart postscript graphics, Mac OS

2003-11-17 Thread Paul Murrell
Hi Kaiser Fung wrote: I am running R on Mac OS X 10.2x. When I create postscript graphics of rpart tree objects, a tiny part of the tree gets trimmed off, even when it has only a few terminal nodes. This happens even without fancy but worse if fancy=T. (This doesn't happen with boxplot,

[R] arima() in ts

2003-11-17 Thread Bridget
I am trying to find a way to obtain the fitted values for a model fit using arima() in the ts package. I came across a suggestion in the mailing list archive that these values can be simply calculated as: model-arima(t, order = c(1,1,0)); fitted-t-model$residuals; But, the help file for

Re: [R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
On Mon, 2003-11-17 at 20:31, Duncan Murdoch wrote: On 17 Nov 2003 20:07:08 -0500, you wrote: Sorry about that. I wanted to select 3 disjoint sets from a supplied vector of numbers. My initial example had r - 1:300 but there is no guarantee that r will contain a consecutive sequence

[R] RE: relationship between two discrete variables

2003-11-17 Thread Paul Sorenson
Further to my queries re relating discrete variables I have had a couple of tips on things I could try. This has lead me to attempt a marginal homogeneity test (http://ourworld.compuserve.com/homepages/jsuebersax/margin.htm). o Does anyone have an opinion on whether this approach would be

Re: [R] Looking for recommendations for optimal memory settings

2003-11-17 Thread Prof Brian Ripley
On Mon, 17 Nov 2003, Busch, Joe wrote: We have a Windows 2000 operating system and I need to configure the workstations. What are your recommendations for users with very large data sets (300Mb)? The systems are Dell GX240s with 512 Mbs of Ram. What command line or environment variables