[R] contour lines for levelplot

2006-02-12 Thread Jan Marius Hofert
Hi, I would like to add contour lines to a (trellis/lattice-) levelplot. Sure, there is the contour=TRUE argument, but this uses cuts=... (which is usually chosen very high for my plots. I guess cuts=99 is the best you can do (?)) for plotting the contour lines. Furthermore, I do not like

[R] frailty

2006-02-12 Thread Stephen
HI I have conducted a Cox analysis a frailty analysis. I am trying to put the output into straight English. Is this correct - the variance explained is R2, whereas the variance of the random effect is the variance in R2 attributable to frailty? Appreciated S. Nana Mail

Re: [R] Baysian model averaging method

2006-02-12 Thread Spencer Graves
I'm not certain what you are asking. Do you want to fit a time series model using Bayesian Model Averaging (BMA), or do you want to predictions with confidence intervals from a BMA fit or both? For any of these, I suggest you start with the posting guide!

[R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim
Dear All, I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Romain Francois
Le 13.02.2006 05:12, Abd Rahman Kassim a écrit : Dear All, I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim
Dear Romain, Thanks a lot for the suggested website and program code. I got it run. Thanks. Abd. Rahman Kassim - Original Message - From: Romain Francois [EMAIL PROTECTED] To: Abd Rahman Kassim [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Sent: Sunday, February 12, 2006 4:27 AM

[R] SUMMARY: aggregate vs. tapply

2006-02-12 Thread Joseph LeBouton
Hi all; Thanks for the responses to my query of how to make tapply into a table instead of an n-dimensional array. Summary of responses follows: Peter Dalgaard: as.data.frame(with(tmp,as.table(tapply(C,list(A=A,B=B),sum Phil Spector wrote: z = tapply(y,list(var1,var2,var3,var4),sum)

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Michael Prager
Besides the answers you already have, you might look at my 4D graph example (with code) on the R Graphics Gallery: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=90 I think it does exactly what you are asking, and therefore it might fit your needs with only slight code

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Gabor Grothendieck
Could you walk us through, in detail, what that graph is showing? On 2/12/06, Michael Prager [EMAIL PROTECTED] wrote: Besides the answers you already have, you might look at my 4D graph example (with code) on the R Graphics Gallery:

[R] differencing a time series

2006-02-12 Thread oliver wee
Hello, I need some help in differencing a time series. For example I have a data set with 100 data points. I need to create a new dataset that consists of the difference of two succeeding data points. something akin to this formula in java: for (int i = 0, i 100, i++) { newdataset[i] =

Re: [R] differencing a time series

2006-02-12 Thread Prof Brian Ripley
On Sun, 12 Feb 2006, oliver wee wrote: Hello, I need some help in differencing a time series. For example I have a data set with 100 data points. I need to create a new dataset that consists of the difference of two succeeding data points. something akin to this formula in java: for (int

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Spencer Graves
Hi Michael and Gabor: GABOR: Prager's '4D' graph looks to me like superimposed contours of both z and zz vs. (x, y), where z is indicated by the colors and pale lines, while black contour lines are values of zz (as indicated by the labeling). I once wrote a crudely similar function to

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Romain Francois
Le 12.02.2006 18:20, Spencer Graves a écrit : Hi Michael and Gabor: (...) MICHAEL: The Addicted to R web site with it's R Graph Gallery are pretty. Is a companion package downloadable from CRAN Not yet. That's something i've wanted to do in a long time (since the beginning I think), but

[R] one legend for multiple plots

2006-02-12 Thread Lucy Crooks
Does anyone know how to make one legend above the plots drawn using par(mfrow=c(1,2)), ie in the margin? All I've managed is to put a legend inside the plot region of one graph. Although I could write text in the margin I don't know how to draw lines in the margin if I were to construct the

Re: [R] one legend for multiple plots

2006-02-12 Thread Uwe Ligges
Lucy Crooks wrote: Does anyone know how to make one legend above the plots drawn using par(mfrow=c(1,2)), ie in the margin? All I've managed is to put a legend inside the plot region of one graph. Although I could write text in the margin I don't know how to draw lines in the margin if

[R] Discriminant analysis to select best treatment

2006-02-12 Thread Felipe Martínez-Pastor
I am designing an experiment to trial several analytic techniques on samples submitted to different treatments. It has occurred to me that I may use discriminant analysis to find out which kind of analysis best reveals differences between treatments. I have found the lda {MASS} in R. However, I

Re: [R] Mathematical typesetting of column heads using the latex (Hmisc) function

2006-02-12 Thread Frank E Harrell Jr
Michael Kubovy wrote: Dear r-helpers, I would very much appreciate help with the following problem: The following command (in a .Rnw file) latex(anova(e7.lmer3, e7.lmer4), file = 'e7lmer34.tex', rowname = c ('nonlinear', 'linear'), longtable = FALSE, dcolumn = T, booktabs = T,

[R] mean from list

2006-02-12 Thread statistical . model
hi all, I have a simple problem that i am not able to solve. I've a list called datalist with the following structure: [...] [[10]] [[10]]$a -1 0 1 -1 31 5 2 0 6 7 5 1 1 7 36 [[10]]$b -1 0 1 -1 31 5 2 0 6 7 5 1 1 7 36 [[10]]$c [1] 0.855 [[10]]$d

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Michael Prager
GG Yes, gladly. It is an idealized example of the following data situation: There are two control or independent variables. They are represented here as x and y, on the horizontal and vertical axes respectively. There are two different responses or dependent variables plotted as different

[R] R: mean from list

2006-02-12 Thread statistical . model
great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c))) works well. and what about getting the average table $a (displaying the average elements across all 1000 matrix)? could you please help me? I am struggling with this... thanks in advance Roberto mean(unlist(lapply(x,

Re: [R] mean from list

2006-02-12 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: hi all, I have a simple problem that i am not able to solve. I've a list called datalist with the following structure: [...] [[10]] [[10]]$a -1 0 1 -1 31 5 2 0 6 7 5 1 1 7 36 [[10]]$b -1 0 1 -1 31 5 2 0 6 7 5

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Spencer Graves
Hi, Michael: I'm sure the example would be clearer AND more interesting if you used real data AND accompanied it with a description like you gave below. To help motivate the usage, you could add a few words of interpretation, e.g., that if you want both z and zz less than 2, x and

Re: [R] Help with the ts function

2006-02-12 Thread Spencer Graves
What are you asking? If you want to learn about times series in R, I suggest the following: 1. Ch. 14 in Venables and Ripley (2002) Modern Applied Statistics with S, 4th ed. (Springer). This may or may not answer your specific question. 2. The article on Date

[R] remote access

2006-02-12 Thread Altshuler Eugeny
Hello! I have such trouble: I like R, but often I don't have administrator permissions to install R on some (not mine) computers. Could you give me shell on any server with R installed in order to apply R without installing it (simply with PuTTY). Great thanks! -- Best regards,

Re: [R] remote access

2006-02-12 Thread Duncan Murdoch
On 2/12/2006 4:07 PM, Altshuler Eugeny wrote: Hello! I have such trouble: I like R, but often I don't have administrator permissions to install R on some (not mine) computers. Current versions of R don't need admin access to install. Just change the default directory to one where you have

[R] Gram-Charlier CDF

2006-02-12 Thread Tolga Uzuner
Hi there, Does anyone have something better (read faster) than the following for the CDF of an A-type Gram-Charlier expansion ? Many thanks in advance, Tolga fact - function (x) gamma(1 + x) gc - function(w,skew=0,kurtosis=0) # gram-charlier density # to be positive, must respect the

[R] Multiple plots on a common x-axis, different y-axes

2006-02-12 Thread Brett Gordon
Hello, I'd like to plot two functions on the same x-axis, but with two different y-axis. However, I can't seem to find the write plotting function to do this with. Any help would be greatly appreciated. Thanks, Brett [EMAIL PROTECTED] __

Re: [R] R: mean from list

2006-02-12 Thread Kjetil Brinchmann Halvorsen
[EMAIL PROTECTED] wrote: great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c))) WHY unlist(lapply(... when sapply(... is simpler? Kjetil works well. and what about getting the average table $a (displaying the average elements across all 1000 matrix)? could you please

[R] Tobit Regression (residual Assumption)

2006-02-12 Thread bambang pramono
I'm statistician I need help with tobit regression Is there assumption in tobit regression ? if any, what kind of that ? please help me !! __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] R: mean from list

2006-02-12 Thread Rajarshi Guha
On Sun, 2006-02-12 at 19:21 -0400, Kjetil Brinchmann Halvorsen wrote: [EMAIL PROTECTED] wrote: great!! thanks very much, mean(unlist(lapply(listdata, function(z) z$c))) WHY unlist(lapply(... when sapply(... is simpler? Aah! Immediately after sending it I realized the simpler form :-/

Re: [R] Tobit Regression (residual Assumption)

2006-02-12 Thread Charles Annis, P.E.
Go to the R site and look. http://www.r-project.org/ There has been some recent traffic on this topic. Click on search: Tobit Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL

Re: [R] remote access

2006-02-12 Thread Pikounis, Bill [CNTUS]
Hello Altshuler: Complete, helpful details related to what Duncan Murdoch points out below are in the R Installation and Administration manual. If you wish to build and use R without admin access in a Unix-alike, see chapter 2. (Can't tell from your message except for your message of shell and

Re: [R] Plotting contour filled.contour in one graph

2006-02-12 Thread Abd Rahman Kassim
Dear Spencer, Thanks for the assistance and the website. It will be very helpful for my future code programming on graph in R. Abd. Rahman - Original Message - From: Spencer Graves [EMAIL PROTECTED] To: Michael Prager [EMAIL PROTECTED] Cc: Gabor Grothendieck [EMAIL PROTECTED]; R Help

Re: [R] aggregate vs tapply; is there a middle ground?

2006-02-12 Thread Hans Gardfjell
Thanks Peter! I had a feeling that there must be a simpler, better, more elegant solution. /Hans Peter Dalgaard wrote: hadley wickham [EMAIL PROTECTED] writes: I faced a similar problem. Here's what I did tmp -