RE: [R] Strange (non-deterministic) problem with strsplit

2004-07-17 Thread Martin Maechler
HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Sat, 17 Jul 2004 01:59:17 +0200 writes: HenrikB [Moving this thread to R-devel instead] I suspect HenrikB your random results are due to a bug in HenrikB gsub(). On my R v1.9.0 (Rterm and Rgui) R crashes HenrikB when I do

Re: [R] sas to r

2004-07-17 Thread Uwe Ligges
Adaikalavan Ramasamy wrote: On Fri, 2004-07-16 at 23:18, Greg Adkison wrote: I would be incredibly grateful to anyone who'll help me translate some SAS code into R code. Searching for SAS code OR script OR translate on http://maths.newcastle.edu.au/~rking/R/ gives a few results, one of which

Re: [R] Random Fields

2004-07-17 Thread Uwe Ligges
Michael Axelrod wrote: I have tried to install the package RandomFields (using the packages menu) from CRAN and it fails to open the zip file. I then tried downloading the package from the author's site, but it still fails to install. Anyone had any success with this? Or am I doing something

Re: [R] sas to r

2004-07-17 Thread Frank E Harrell Jr
Greg Adkison wrote: I would be incredibly grateful to anyone who'll help me translate some SAS code into R code. Say for example that I have a dataset named dat1 that includes five variables: wshed, site, species, bda, and sla. I can calculate with the following SAS code the mean, CV, se,

Re: [R] sas to r

2004-07-17 Thread Adaikalavan Ramasamy
I am must be a bigger/slower fool to have fallen for April fools trick in the mid of July ! Sorry Greg for misleading you. On Sat, 2004-07-17 at 11:43, Uwe Ligges wrote: Adaikalavan Ramasamy wrote: On Fri, 2004-07-16 at 23:18, Greg Adkison wrote: I would be incredibly grateful to

Re: [R] sas to r

2004-07-17 Thread Uwe Ligges
Adaikalavan Ramasamy wrote: I am must be a bigger/slower fool to have fallen for April fools trick in the mid of July ! Sorry Greg for misleading you. Adaikalavan, I think you don't need to apologize. I had read that message three times, and visited the cited web page within that message which

Re: [R] Running the optimization on the subset of parameters

2004-07-17 Thread Roger D. Peng
If you use the mle() function in the `stats4' package, you don't have to do anything special. For example, negloglik - function(a, b) { a^2 + b^2 } mle(negloglik, start = list(a = 2), fixed = list(b = 4)) Call: mle(minuslogl = negloglik, start = list(a = 2), fixed = list(b = 4)) Coefficients:

Re: [R] areg.boot use of inverseTrans and ytype

2004-07-17 Thread Frank E Harrell Jr
Anne wrote: Hi R helpers! I'm still a bit ( alot) confused by the use of inverseTrans and ytype in areg.boot (Hmisc): What I want to do seems very simple, but I do not get the result I want: plot the predicted values in the original scale. (I did not understand the documentation, sorry!) for

Re: [R] sas to r

2004-07-17 Thread Frank E Harrell Jr
Here is an improvement to what I sent earlier today. g - function(y) { s - apply(y, 2, function(z) { z - z[!is.na(z)] n - length(z) if(n==0) c(NA,NA,NA,0) else if(n==1) c(z, NA,NA,1) else { m - mean(z)

[R] R question about spectrum metric

2004-07-17 Thread Niels Waller
Dear R community, I would like to conduct a simulation study that involves the generation and recovery of times series spectra. Spectrum analysis is a new area for me so I am very much in the crawling stage at this point. I am having difficulty understanding the output of the spec.pgram (or

Re: [R] More on global environment

2004-07-17 Thread Cliff Lunneborg
You may want to look at the notes on and functions for workspace management that guide me. They can be downloaded from http://faculty.washington.edu/lunnebor/Stat342/ by checking on Exercises. I use the .GlobalEnv (position 1 on search path) solely for scratch and have project work attached

[R] gray background in png

2004-07-17 Thread Sundar Dorai-Raj
Hi all, I'm having a problem creating png images with trellis.device. I would like to create many plots with a white background using a sequence number in the file argument (i.e. %02d). The first plot is as expected with a white background. However, the second and all subsequent plots have a