[R] Arima seasonal

2003-09-04 Thread Lisa
Dear R People, I would like to fit an arima model with a seasonal component, but I've daily data and I consider a montly seasonal ?! How could I have a daily predict with this kid of time series ? Thanks in advance for any insight Lisa [[alternative HTML version deleted]]

Re: [R] laplace transform

2003-09-04 Thread Andrew C. Ward
Dear Luca, I don't think that R has a built-in function for doing Laplace or inverse Laplace transforms. I remember having to use an IMSL routine (INLP, I think) to do this many years ago. When I looked at the article that the algorithm was based on, I found that as an example the author showed ho

[R] Two questions about building R add-on package

2003-09-04 Thread Wenyi Wang
Hi, I am a new user of R and am building an R add-on package. I followed the "Writing R Extension" manual from cran website but still met some problems that I cannot solve. I build it under redhat linux 9.0 R1.7.0. Say foo is the name of the package. First, after I wrote the Rd files for each f

Re: [R] Putting regression lines on SPLOM

2003-09-04 Thread Deepayan Sarkar
On Thursday 04 September 2003 19:52, Ted Harding wrote: > Thanks, Deepayan! > However, for me this has deepened the mystery (I don't really > understand in detail how lattice graphics works anyway!). > > To clarify: The variables X,Y,Z,W in DF have some zero values, > and otherwise are positive. F

[R] Finding periods, sort of.

2003-09-04 Thread Richard A. O'Keefe
A student of mine has 110 similarly structured multivariate time series, and we're interested in methods that are practical for thousands of them. Basically each series describes a series of musical notes, and certain properties of these notes are recorded. The same set of properties is recorded

RE: [R] Strange problem.

2003-09-04 Thread Dowkiw, Arnaud
By the way, Dong, you shouldn't use the term "mean" in Splus to designate the mean of your trait (mean<-8000). "mean' is an Splus function, and by doing mean<-8000, you may experience problems when you'll need the argument "mean" to designate the original Splus function (as in the function mod

Re: [R] Putting regression lines on SPLOM

2003-09-04 Thread Ted Harding
Thanks, Deepayan! However, for me this has deepened the mystery (I don't really understand in detail how lattice graphics works anyway!). To clarify: The variables X,Y,Z,W in DF have some zero values, and otherwise are positive. For U,V in X,Y,Z,W I plot log(1+V) against log(1+U) for all the point

RE: [R] read.table: check.names arg - feature request

2003-09-04 Thread Gabor Grothendieck
How about this: read.table(textConnection(sub("^#","",readLines(myfile))),header=T) which simply stripts off any # which is first on any line and then passes the result to read.table . --- "Vadim Ogranovich" <[EMAIL PROTECTED]> wrote: >I admit I should have been more clear in my original postin

SUMMARY: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Paul, David A
My thanks to Drs. Armstrong, Bates, Harrell, Liaw, Lumley, Prager, Schwartz, and Mr. Wang for their replies. I have pasted my original message and their replies below. After viewing http://www.itl.nist.gov/div898/strd/ as suggested by Dr. Schwartz, it occurred to me that it might be educational

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Thomas Lumley
On Thu, 4 Sep 2003, Paul, David A wrote: > I am one of only 5 or 6 people in my organization making the > effort to include R/Splus as an analysis tool in everyday work - > the rest of my colleagues use SAS exclusively. > > Today, one of them made the assertion that he believes the > numerical al

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Douglas Bates
Douglas Bates <[EMAIL PROTECTED]> writes: > McCullough, B. D. (1998), "Assessing the reliability of statistical > software: Part I", The American Statistician, 52, 149-159. > > McCullough, B. D. (1999), "Assessing the reliability of statistical > software: Part II", The American Statistician,

[R] PROC MIXED vs lme. Split-plot with heterogeneous variances.

2003-09-04 Thread Kevin Wright
> A curious difference between SAS and R. I wonder if anyone can explain it. > > Basic idea: Split-plot design (Male = whole plot, Trt = Sub plot). Rep is random, > Rep*Male variance component is 0 and deleted. Heterogeneous variances - each Trt > has different variance. > > The model with o

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Douglas Bates
"Paul, David A" <[EMAIL PROTECTED]> writes: > I am one of only 5 or 6 people in my organization making the > effort to include R/Splus as an analysis tool in everyday work - > the rest of my colleagues use SAS exclusively. > > Today, one of them made the assertion that he believes the > numerica

Re: [R] error handling in R/ lapack routines

2003-09-04 Thread Spencer Graves
yes: From "?optim", I get the following: optim(par, fn, gr = NULL, method = c("Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN"), lower = -Inf, upper = Inf, control = list(), hessian = FALSE, ...) By "fn", I meant the function you supply for that argument. spencer

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Mike Prager
Paul, David A wrote: I am one of only 5 or 6 people in my organization making the effort to include R/Splus as an analysis tool in everyday work - the rest of my colleagues use SAS exclusively. Today, one of them made the assertion that he believes the numerical algorithms in SAS are superior to t

Re: [R] error handling in R/ lapack routines

2003-09-04 Thread Spencer Graves
I just did a Google search for "lapack error codes" and got several hits. However, I don't know if a translation of "error code 17" would really help you. Have you tried "fn" as a stand-alone function? If yes, have you tried including a "cat" or "print" statement in it, so it prints the

Re: [R] Dos() Command for R

2003-09-04 Thread Peter Dalgaard BSA
Dirk Eddelbuettel <[EMAIL PROTECTED]> writes: > On Thu, Sep 04, 2003 at 05:37:46PM +0200, Brunschwig, Hadassa {PDMM~Basel} wrote: > > Is there an equivalent in R for the dos() command in S? > > help(system) help(shell) on Windows, actually. -- O__ Peter Dalgaard Blegdamsv

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Ko-Kang Kevin Wang
On Thu, 4 Sep 2003, Paul, David A wrote: > I am one of only 5 or 6 people in my organization making the > effort to include R/Splus as an analysis tool in everyday work - > the rest of my colleagues use SAS exclusively. > > Today, one of them made the assertion that he believes the > numerical a

Re: [R] documents for writing functions

2003-09-04 Thread Ko-Kang Kevin Wang
On Thu, 4 Sep 2003, Spencer Graves wrote: > Have you considered the two books by Venables and Ripley (2002) Modern > Applied Statistics in S and (2000) S Programming (both Springer)? If > yes, I don't know what you mean by "the usually available manuals." In addition, John Chambers's "Programm

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Marc Schwartz
On Thu, 2003-09-04 at 08:34, Frank E Harrell Jr wrote: > On Thu, 04 Sep 2003 14:50:25 -0400 > "Paul, David A" <[EMAIL PROTECTED]> wrote: > > > I am one of only 5 or 6 people in my organization making the > > effort to include R/Splus as an analysis tool in everyday work - > > the rest of my colle

[R] error handling in R/ lapack routines

2003-09-04 Thread Hae-Kyung Im
Does any of you know where I can find an explanation of lapack errors codes? I get error code 17 when using optim(). Is there a way to handle errors in R such that depending on the type of error I can decide what to do next? Thanks, Haky __ [EMAIL PR

Re: [R] Comparison of SAS & R/Splus

2003-09-04 Thread Frank E Harrell Jr
On Thu, 04 Sep 2003 14:50:25 -0400 "Paul, David A" <[EMAIL PROTECTED]> wrote: > I am one of only 5 or 6 people in my organization making the > effort to include R/Splus as an analysis tool in everyday work - > the rest of my colleagues use SAS exclusively. > > Today, one of them made the asserti

[R] Comparison of SAS & R/Splus

2003-09-04 Thread Paul, David A
I am one of only 5 or 6 people in my organization making the effort to include R/Splus as an analysis tool in everyday work - the rest of my colleagues use SAS exclusively. Today, one of them made the assertion that he believes the numerical algorithms in SAS are superior to those in Splus and R -

Re: [R] Putting regression lines on SPLOM

2003-09-04 Thread Deepayan Sarkar
You can't do it in that sequence, and whether you can do it at all depends on exactly what you mean when you say that the data used for the regressions are not the same as those used for the plots. The typical way would be to do splom(DF, panel = function(x, y, ...) { panel.xy

Re: [R] counts for grouped data

2003-09-04 Thread Spencer Graves
Have you considered "table"? spencer graves Paul Green wrote: How does one get counts for grouped data from ungrouped data. For example, how can I get X1 X2 Count 1 1 1 1 2 2 2 1 1 2 2 1 from X1 X2 A

RE: [R] read.table: check.names arg - feature request

2003-09-04 Thread Marc Schwartz
On Thu, 2003-09-04 at 12:00, Vadim Ogranovich wrote: > I admit I should have been more clear in my original posting. Let me > try again (and I do know that by deafulat read.table discards > everything after '#' which is why I use comment.char="", my bad not to > mention this). > > > Here is a typ

RE: [R] read.table: check.names arg - feature request

2003-09-04 Thread Tony Plate
If you have a special need, it probably far more time effective on your part to write a special function rather than attempt to convince the very busy R developers that they should add a new feature to a very old function (is this a better use of their time than, say, fixing long identified bugs

Re: [R] counts for grouped data

2003-09-04 Thread Thomas Lumley
On Thu, 4 Sep 2003, Paul Green wrote: > How does one get counts for grouped data > from ungrouped data. For example, how can > I get > > X1 X2 Count > 1 1 1 > 1 2 2 > 2 1 1 > 2 2 1 > > from > > X1 X2 >

Re: [R] lattice question--- different ylim

2003-09-04 Thread Deepayan Sarkar
For example (variations are possible), y <- 100 * runif(400) a <- gl(4, 100) x <- gl(3, 7, 400) library(lattice) bwplot(y ~ x | a, scales = list(y = "free"), ylim = list(c(0, 100), c(0, 200), c(0, 100), c(0, 200))) (Assuming you have up to date versions of R and lattice). On Thursday

[R] gnome gui question

2003-09-04 Thread Anne York
I have compiled R 1.7.1 with gnome and installed the gtkDevice on a Linux RH 8 system. This is my first use of this device and I have two questions about it. 1. After running R --rui="gnome", the console comes up. To open a graphics window, I open the gtkDevice library [library(gtkDevice)], th

[R] counts for grouped data

2003-09-04 Thread Paul Green
How does one get counts for grouped data from ungrouped data. For example, how can I get X1 X2 Count 1 1 1 1 2 2 2 1 1 2 2 1 from X1 X2 AA AB BB AB BA

[R] scatter.smooth error

2003-09-04 Thread Peter Flom
Hello When I run scatter.smooth(jitter(weight), jitter(height2), span = .25, evaluation = 50, pch = '.') I get the type of graph I thought I would get, but also a warning. k-d tree limited by memory. ncmax= 528 I always get concerned when there are warnings I don't understand. What's a

Re: [R] documents for writing functions

2003-09-04 Thread Patrick Burns
Would S Poetry be the sort of thing you are looking for? Patrick Burns Burns Statistics [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Rado Bonk wrote: Hi, Does anybody know suitable documents (manuals) on writing user f

Re: [R] function is too long to keep source

2003-09-04 Thread Thomas Lumley
On Thu, 4 Sep 2003, Marcel Vieira wrote: > Dear R users, > > I am trying to minimise a function using "nlm". > > I am getting the following error message: "Error: function is too long to > keep source" > > The function is really very long (about 100 A4 pages). > > Is there anything I could do to s

RE: [R] read.table: check.names arg - feature request

2003-09-04 Thread Vadim Ogranovich
I admit I should have been more clear in my original posting. Let me try again (and I do know that by deafulat read.table discards everything after '#' which is why I use comment.char="", my bad not to mention this). Here is a typical example of my data file: #keyvalue foo 1.2 boo

[R] Splus/R: Complementing and Extending Statistical Computing for SAS Users

2003-09-04 Thread elvis
XLSolutions Corporation ([1]www.xlsolutions-corp.com) is pleased to announce a two-day course, "Splus/R: Complementing and Extending Statistical Computing for SAS Users" [2]www.xlsolutions-corp.com/Rsas.htm Dates/City: October 9-10, 2003 in Washington DC October 2-3,

Re: [R] function is too long to keep source

2003-09-04 Thread Barry Rowlingson
Marcel Vieira wrote: Thanks a lot for your help. But I am getting that error message when I am trying to load my function. Then I can't use anything to minimise it. Is there anything I can do to increase R's capacity for loading very long functions? I assume by 'load' you must be somehow using 'so

[R] Putting regression lines on SPLOM

2003-09-04 Thread Ted Harding
Sorry Folks, I'm sure I could suss out the answer myself but I need it soon ... ! 1. Given a set of 4 variables X,Y,Z,W in a dataframe DF, I make a scatter-plot matrix using splom(DF). 2. I do all regressions of U on V using lm(U~V), where U and V are all 12 different ordered pairs from X,Y

Re: [R] function is too long to keep source

2003-09-04 Thread Spencer Graves
I have a personal rule that any function I write that is longer than about one page should be modularized. This rule pushes me to think carefully about how to structure the problem. It also helps me debug my code and modify it as appropriate. If I can develop appropriate "primatives", I g

Re: [R]: RODBC column length>255

2003-09-04 Thread Dirk Eddelbuettel
On Thu, Sep 04, 2003 at 04:10:12PM +0100, Wayne Jones wrote: > I am using the RODBC functionality to query a database. I am trying to read > in a columns of strings which have a character field lengths greater than > 255. > The data.frame that I recieve back from the RODBC query only contains the

Re: [R] Dos() Command for R

2003-09-04 Thread Dirk Eddelbuettel
On Thu, Sep 04, 2003 at 05:37:46PM +0200, Brunschwig, Hadassa {PDMM~Basel} wrote: > Is there an equivalent in R for the dos() command in S? help(system) Hth, Dirk -- Those are my principles, and if you don't like them... well, I have others. -- Gr

Re: [R] function is too long to keep source

2003-09-04 Thread Marcel Vieira
Thanks a lot for your help. But I am getting that error message when I am trying to load my function. Then I can't use anything to minimise it. Is there anything I can do to increase R's capacity for loading very long functions? Many thanks. Marcel Have you considered "optim" in library(MASS)? "

Re: [R] documents for writing functions

2003-09-04 Thread Spencer Graves
Have you considered the two books by Venables and Ripley (2002) Modern Applied Statistics in S and (2000) S Programming (both Springer)? If yes, I don't know what you mean by "the usually available manuals." hope this helps. Rado Bonk wrote: Hi, Does anybody know suitable documents (manuals)

Re: [R] function is too long to keep source

2003-09-04 Thread Spencer Graves
Have you considered "optim" in library(MASS)? "optim" will optionally output the hessian, which can be used to obtain confidence intervals in many cases. hope this helps. spencer graves Marcel Vieira wrote: Dear R users, I am trying to minimise a function using "nlm". I am getting the fo

[R] documents for writing functions

2003-09-04 Thread Rado Bonk
Hi, Does anybody know suitable documents (manuals) on writing user functions (covering loops, conditions ...) in R? Other than the usually available manuals. Thanks, Rado -- Radoslav Bonk M.S. Dept. of Physical Geography and Geoecology Faculty of Sciences, Comenius University Mlynska Dolina 8

[R] function is too long to keep source

2003-09-04 Thread Marcel Vieira
Dear R users, I am trying to minimise a function using "nlm". I am getting the following error message: "Error: function is too long to keep source" The function is really very long (about 100 A4 pages). Is there anything I could do to solve this problem? At the moment I am using "nlmin" in S

Re: [R] subtract 2 columns in a data.frame -- found the problem

2003-09-04 Thread Martin Maechler
> "Ulrich" == Ulrich Leopold <[EMAIL PROTECTED]> > on Thu, 04 Sep 2003 14:41:41 +0200 writes: Ulrich> Dear list, sorry for having bothering you. I found Ulrich> the problem. It was the a stupid error made by me. R Ulrich> could not recognise the variable as it is of course

Re: [R] Overlaying graphs

2003-09-04 Thread Paul Meagher
From: "Spencer Graves" <[EMAIL PROTECTED]> > Your observation that qqnorm "does not appear to be very general" is > rebutted by Venables and Ripley (2002) Modern Applied Statistics with S, > 4th ed. (Springer, p.108): "One of the best ways to compare the > distribution of a sample x with a dist

[R] R command

2003-09-04 Thread solares
Hi, ¿How i cant exexute a script in R without the environment of R?, my script uses the package tcltk, i like view only the interface without tehe environment of R 1.7.1 Ej name script---> probe.R tt<-tktoplevel() but<-tkbutton() and execute in win (icon or line command) probe.R and see the int

[R] Dos() Command for R

2003-09-04 Thread Brunschwig, Hadassa {PDMM~Basel}
Hello R-people Is there an equivalent in R for the dos() command in S? We are trying to write a function which will initiate the Metropolis algorithm run with BUGS. That means we have a file containing the commands for BUGS which we usually type in manually in the command prompt to run BUGS. I

Re: [R] Looking for R Equivalent of Gauss Statements

2003-09-04 Thread Francisco J. Bido
Thanks Marlene, that's exactly what I was hoping for. Best, -Francisco On Thursday, September 4, 2003, at 02:37 AM, Marlene Mueller wrote: R is very similar to Gauss for this kind of task. Try: e1 <- x[,23] == 0 e2 <- x[,12] > 1 e3 <- x[,4] < 15 e <- e1 | e2 | e3 # e1 or e2 or e3 x

[R]: RODBC column length>255

2003-09-04 Thread Wayne Jones
Hello there fellow R-users, I am using the RODBC functionality to query a database. I am trying to read in a columns of strings which have a character field lengths greater than 255. The data.frame that I recieve back from the RODBC query only contains the first 255 characters (the rest having

Re: [R] Allelic Differentiation, sampling, unique(), duplicated()

2003-09-04 Thread Thomas Lumley
On Fri, 5 Sep 2003, Philip Rhoades wrote: > Hi people, > > I have made some progress trying to work out how to solve this problem > but I have got a bit stuck - sorry if this turns out to be a simple > exercise . . > > Allelic Differentiation (AD) in genetics measures the number of > different all

Re: [R] How to avoid automatic coercion to factor?

2003-09-04 Thread Brian D Ripley
Yes, that is one scenario and for that we need a better class (possibly a better data.frame class). But there are other scenarios for which a special class for the column is better. Which is why I asked. > Steve Dutky <[EMAIL PROTECTED]> wrote: >> I have a function that manipulates a list of num

Re: [R] error in lm.fit - solved

2003-09-04 Thread Martin Wegmann
Hi, I found the problem, now it is working fine. cheers Martin On Thursday 04 September 2003 16:20, Martin Wegmann wrote: > Hello R user, > > I have several data frames with >100 columns and I did a linear regression > over time of each column > > df1.lm <- lapply(df1, function(x) lm(x~year)$co

Re: [R] Overlaying graphs

2003-09-04 Thread Damon Wischik
Paul Meagher wrote: > 2. Does R have a suite of "best-fit" tools for finding the best > fitting-probability distribution for any observed probability distribution? I think that the best-fitting probability distribution for an observed probability distribution is the empirical distribution of your

Re: [R] Overlaying graphs

2003-09-04 Thread Spencer Graves
Your observation that qqnorm "does not appear to be very general" is rebutted by Venables and Ripley (2002) Modern Applied Statistics with S, 4th ed. (Springer, p.108): "One of the best ways to compare the distribution of a sample x with a distribution is to use a Q-Q plot. ... This idea ca

[R] lattice question--- different ylim

2003-09-04 Thread Mahbub Latif
Hi there, I have four panels in a lattice bwplot. I want to have two different ylim for the panels, for example panels [1,1] and [1,2] with ylim=c(0,200) and panels [2,1] and [2,2] with ylim=c(0,100). Thanks for help in advance. Mahbub. __ [EMAIL PRO

[R] laplace transform

2003-09-04 Thread Luca Laghi
Dear users, is anybody of you aware of a R command to perform laplace transform or even its inversion? Thank you very much. Luca __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] error in lm.fit

2003-09-04 Thread Martin Wegmann
Hello R user, I have several data frames with >100 columns and I did a linear regression over time of each column df1.lm <- lapply(df1, function(x) lm(x~year)$coeff[2]) that worked fine and I get slope of each column oder time - until I divided df1 by df2 df3 <- df1/df2 > df3.lm <- lapply(

Re: [R] SNK-test

2003-09-04 Thread Jim Rogers
Please note Student-Newman-Keuls is NOT a recommended multiple comparison procedure. In the language of Hsu (1996), Student-Newman-Keuls is not even a "confident inequalities" method. In other words, it does not control the probability of making at least one incorrect assertion of inequality (wh

[R] Allelic Differentiation, sampling, unique(), duplicated()

2003-09-04 Thread Philip Rhoades
Hi people, I have made some progress trying to work out how to solve this problem but I have got a bit stuck - sorry if this turns out to be a simple exercise . . Allelic Differentiation (AD) in genetics measures the number of different alleles between (say) two populations eg: Organisms i

Re: [R] title expressions

2003-09-04 Thread Thomas Lumley
On Thu, 4 Sep 2003, Roger Koenker wrote: > The officially sanctioned way to put the expression "lambda_1 = x" in a title > is something like this: > > title(substitute(lambda[1] == lamb, list(lamb = x))) > > but suppose I have two lambdas and would like something like > > "lambda_1 = x

Re: [R] Overlaying graphs

2003-09-04 Thread Paul Meagher
My apologies for the last email that only contained the message and not my reply. Here is what I meant to send. - Original Message - From: "Richard A. O'Keefe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 2:56 AM Subject: Re: [R] Overlaying graphs > I d

Re: [R] Overlaying graphs

2003-09-04 Thread Paul Meagher
- Original Message - From: "Richard A. O'Keefe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 2:56 AM Subject: Re: [R] Overlaying graphs > I do not know how to overlay the curve graphic on top of hist graphic. > > Do you know about the "add=TRUE" option

[R] title expressions

2003-09-04 Thread Roger Koenker
The officially sanctioned way to put the expression "lambda_1 = x" in a title is something like this: title(substitute(lambda[1] == lamb, list(lamb = x))) but suppose I have two lambdas and would like something like "lambda_1 = x_1 , lambda_2 = x_2" to appear. What then? Undou

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Petr Pikal
Hi On 4 Sep 2003 at 14:35, Ulrich Leopold wrote: > > E.g., > > > > mydata$difference <- mydata$x - mydata$y > > > > That's what I thought, but I get the following message: > > > propLSK.STONE.Pox0t30$Pox0t30STONE-propLSK.STONE.Pox0t30$Pox0t30 > numeric(0

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Peter Dalgaard BSA
Ulrich Leopold <[EMAIL PROTECTED]> writes: > > E.g., > > mydata$difference <- mydata$x - mydata$y > > > > That's what I thought, but I get the following message: > > > propLSK.STONE.Pox0t30$Pox0t30STONE-propLSK.STONE.Pox0t30$Pox0t30 > numeric(0) > > Does it mean the resulting vector is empty?

Re: [R] subtract 2 columns in a data.frame -- found the problem

2003-09-04 Thread Ulrich Leopold
Dear list, sorry for having bothering you. I found the problem. It was the a stupid error made by me. R could not recognise the variable as it is of course case sensitive for names. So I specified the wrong variable name and R did complain about it with "numeric(0)". Ulrich Peter Dalgaard BSA

Re: [R] AIC and significance tests

2003-09-04 Thread Spencer Graves
2*log(likelihood ratio) is approximately chi-square for nested models. AIC = (-2)*(log(likelihood)-k), where k = number of parameters in the model. Thus, del(AIC) = 2*(log(likelihood ratio)-del(k)). If the trend is strictly linear, then it involves only 1 parameter, so del(k) = 1. Then

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Ulrich Leopold
E.g., mydata$difference <- mydata$x - mydata$y That's what I thought, but I get the following message: > propLSK.STONE.Pox0t30$Pox0t30STONE-propLSK.STONE.Pox0t30$Pox0t30 numeric(0) Does it mean the resulting vector is empty? If yes, what could be the reason for it? Both columns are available:

[R] AIC and significance tests

2003-09-04 Thread David Richard John Pleydell
Hi I have two geostatistical models from geoR. An ordinary kriging model with AIC=-148.6 and a universal kriging model with AIC=-156.7, there are 345 data points. The improvement shown by the AIC by adding a trend component to the model seems quite small given the number of data points, is the

Re: [R] help.start( )

2003-09-04 Thread partha_bagchi
I think the Mozilla plugin site explicitly says that you cannot copy the Java plugin into the Mozilla plugin directory. You have to make a symbolic link to it in the plugin directory. Please try that. Jason Turner <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/03/2003 07:32 PM

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Ko-Kang Kevin Wang
On 4 Sep 2003, Ulrich Leopold wrote: > could someone point me to the right command to subtract 2 columns in a > data.frame. Might be a bit embarrassing question. But I cannot figure > out how to do this simple command in R. Suppose your data frame is called foo, and you want the first column minu

[R] boot with strata doubt

2003-09-04 Thread Ernesto Jardim
Hi, I'm using the boot package to bootstrap a linear model. The boot command is: > blm01 <- boot(mat, boot.fishpower, 1000, strata=boot.strata) I'm having several problems with the linear model so I decided to check the stratification. The first thing I did was checking the number of observation

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Spencer Graves
Is the following what you want? > DF <- data.frame(a=1:2, b=3:4) > DF$a-DF$b [1] -2 -2 > DF[,"a"]-DF[,"b"] [1] -2 -2 hope this helps. spencer graves Ulrich Leopold wrote: Dear list, could someone point me to the right command to subtract 2 columns in a data.frame. Might be a bit embarrassing qu

Re: [R] subtract 2 columns in a data.frame

2003-09-04 Thread Peter Dalgaard BSA
Ulrich Leopold <[EMAIL PROTECTED]> writes: > Dear list, > > could someone point me to the right command to subtract 2 columns in a > data.frame. Might be a bit embarrassing question. But I cannot figure > out how to do this simple command in R. E.g., mydata$difference <- mydata$x - mydata$y --

[R] subtract 2 columns in a data.frame

2003-09-04 Thread Ulrich Leopold
Dear list, could someone point me to the right command to subtract 2 columns in a data.frame. Might be a bit embarrassing question. But I cannot figure out how to do this simple command in R. Thanks, Ulrich -- __ Ulrich Leopold MSc. Department of

Re: [R] ANOVA/MANOVA

2003-09-04 Thread Ko-Kang Kevin Wang
On Thu, 4 Sep 2003, Britta Lintfert wrote: > I have to do an ANOVA (or is it a MANOVA) with 6 Variables (called HsL, > LsH, Hp, Lp, G, and) and 6 categories (OQ, Go, RC, AV, CC, Sk), the > examples in the literature couldn't help me so far. Who can help me?? Perhaps the documentation of aov()

[R] ANOVA/MANOVA

2003-09-04 Thread Britta Lintfert
Hello, I have to do an ANOVA (or is it a MANOVA) with 6 Variables (called HsL, LsH, Hp, Lp, G, and) and 6 categories (OQ, Go, RC, AV, CC, Sk), the examples in the literature couldn't help me so far. Who can help me?? Thank Britta __ [EMAIL PROTECTE

Re: [R] read.table: check.names arg - feature request

2003-09-04 Thread Martin Maechler
> "Vadim" == Vadim Ogranovich <[EMAIL PROTECTED]> > on Wed, 3 Sep 2003 14:29:25 -0700 writes: Vadim> Hi, I thought it would be convenient if the Vadim> check.names argument to read.table, which currently Vadim> can only be TRUE/FALSE, could take a function value Vadim>

Re: [R] Looking for R Equivalent of Gauss Statements

2003-09-04 Thread Marlene Mueller
R is very similar to Gauss for this kind of task. Try: e1 <- x[,23] == 0 e2 <- x[,12] > 1 e3 <- x[,4] < 15 e <- e1 | e2 | e3 # e1 or e2 or e3 x <- x[!e,] # keep if NOT e Hope that helps, Marlene Francisco J. Bido wrote: Hi, I am translating some Gauss code to R. Gauss has