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
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 -
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
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
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
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
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
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
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)
}
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
{
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
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:
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
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)
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
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
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!
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
18 matches
Mail list logo