[R] Re:GAM with R

2004-01-17 Thread Gomez J. Edison
I have a data file in SPSS with about 50 variables and more than 2000 cases. I would like to fit a gam model. I tried with foreign package to read SPSS data file and tried gam with mgcv package. It gave me error. Can anybody help me in this matter. Thanks a lot. Gomez J. Edison

Re: [R] Weird problem with trying to change a variable

2004-01-17 Thread Prof Brian Ripley
On Sat, 17 Jan 2004, Damon Wischik wrote: [Quoting me in reply to something else without the context not attribution.] Lists? Do you mean vectors? Columns of dataframes are not supposed to be lists. Ah. I've been using commands like x - list(c(1,2,3),c(2,1),c(6,6,1)) y -

Re: [R] Re:GAM with R

2004-01-17 Thread Uwe Ligges
Gomez J. Edison wrote: I have a data file in SPSS with about 50 variables and more than 2000 cases. I would like to fit a gam model. I tried with foreign package to read SPSS data file and tried gam with mgcv package. It gave me error. Can anybody help me in this matter. Nobody! You

[R] ternary diagrams with contours

2004-01-17 Thread Kyriakos Kachrimanis
Dear R-listers, I would like to ask if it is possible to create ternary diagrams with contours. I want to plot a property that depends on a ternary mixture composition, so I think this would be the best way. I found a similar question in a past R-help list message but there was no answer. In

[R] ternary diagrams with contours

2004-01-17 Thread Kyriakos Kachrimanis
Dear R-listers, I would like to ask if it is possible to create ternary diagrams with contours. I want to plot a property that depends on a ternary mixture composition, so I think this would be the best way. I found a similar question in a past R-help list message but there was no answer. In

Re: [R] Weird problem with trying to change a variable

2004-01-17 Thread Peter Dalgaard
Peter Flom [EMAIL PROTECTED] writes: Thanks for the responses. Several people suggested I check that the numbers are exactly what I think they are (ie. that 5360 is not 5360.1. I don't think this is the case (the data were entered in SAS, then I used DBMS copy to get them to SPSS, and

Re: [R] ternary diagrams with contours

2004-01-17 Thread Prof Brian Ripley
On Sat, 17 Jan 2004, Kyriakos Kachrimanis wrote: I would like to ask if it is possible to create ternary diagrams with contours. I want to plot a property that depends on a ternary mixture composition, so I think this would be the best way. I found a similar question in a past R-help list

Re: [R] Sparse matrix row/column access (SparseM)?

2004-01-17 Thread Renald Buter
On Fri, Jan 16, 2004 at 02:55:05PM -0600, Roger Koenker wrote: Given a matrix in any of the SparseM forms, you can access columns and rows with the usual R subsetting conventions, e.g. A[,k] gives the kth column, A[m,] gives the mth row... *blush* Couln't be more simpler. Thank you. As a

[R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Karl Knoblick
Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme postscript(PSFile.ps) for (i in 1:1) # just as example { plot(Loblolly) }

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Uwe Ligges
Karl Knoblick wrote: Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme postscript(PSFile.ps) for (i in 1:1) # just as example {

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Deepayan Sarkar
On Saturday 17 January 2004 08:58, Karl Knoblick wrote: Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Karl Knoblick
Thanks, but it does NOT work using a loop (your example without loop works): trellis.device(postscript, file = PSFile.ps) for (i in 1:1) { plot(Loblolly) } dev.off() Just an empty postscript file. Karl. --- Uwe Ligges [EMAIL PROTECTED] : Note that this is a lattice plot:

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Prof Brian Ripley
On Sat, 17 Jan 2004, Uwe Ligges wrote: Karl Knoblick wrote: Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme

Re: [R] Multiple groupedData plots in a postscript file using a loop

2004-01-17 Thread Uwe Ligges
Karl Knoblick wrote: Thanks, but it does NOT work using a loop (your example without loop works): trellis.device(postscript, file = PSFile.ps) for (i in 1:1) { plot(Loblolly) } dev.off() Yep, sorry. You need to print() a lattice plot in this case: trellis.device(postscript, file = PSFile.ps)

Re: [R] plot in win.metafile in nlme

2004-01-17 Thread Karl Knoblick
My problem was solved by using trellis.device(win.metafile,file=Loblolly.wmf, color=F) instead of win.metafile(Loblolly.wmf). (other answers helped also) (What I found for getting similiar plots as postscript was color=F in the trellis.device(...) command) Thanks to all! Karl. BTW

Re: [R] plot in win.metafile in nlme

2004-01-17 Thread Prof Brian Ripley
On Sat, 17 Jan 2004, Karl Knoblick wrote: My problem was solved by using trellis.device(win.metafile,file=Loblolly.wmf, color=F) instead of win.metafile(Loblolly.wmf). (other answers helped also) (What I found for getting similiar plots as postscript was color=F in the

[R] (no subject)

2004-01-17 Thread Saini48
Need the Documentation for R's samplecommand [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] documentation for sample [was (no subject)]

2004-01-17 Thread Spencer Graves
Have you tried the posting guide at http://www.R-project.org/posting-guide.html;? If yes, please be more specific regarding what you tried and why you are not satisfied. hope this helps. spencer graves [EMAIL PROTECTED] wrote: Need the Documentation for R's samplecommand