[R] (no subject)

2004-09-27 Thread YiYao_Jiang
*** On Tue, 28 Sep 2004, YiYao_Jiang wrote: I can't setup a library for some functions. Can anybody kindly give me an example about setup a library. From build a package to library. *** Actual

Re: [R] memory increase for large r simulation

2004-09-27 Thread Prof Brian Ripley
Please read the appropriate FAQ (rw-FAQ), as the posting guide asks. ^ 2.7 There seems to be a limit on the memory it uses! lokks relevant, and is. (So was some more info given with that error message.) On Tue, 28 Sep 2004, sha

RE: [R] sapply behavior

2004-09-27 Thread Prof Brian Ripley
On Mon, 27 Sep 2004, Liaw, Andy wrote: > The problem is that temp2 is a data frame, and the function you are > sapply()ing to returns a row from a data frame. A data frame is really a > list, with each variable corresponding to a component. If you extract a row > of a data frame, you get another

[R] memory increase for large r simulation

2004-09-27 Thread shane stanton
Hi, I am running R from windows 95. I have a large simulation, which R does not get very far through before telling me: "error cannot allocate vector of size 871875 Kb" and warning message "reached total allocation of 127 Mb" I have been trying to increase the memory allocation to R from my co

Re: [R] (no subject)

2004-09-27 Thread Kevin Wang
Hi, On Tue, 28 Sep 2004, YiYao_Jiang wrote: > Hello everybody: > > I can't setup a library for some functions. > Can anybody kindly give me an example about setup a library. From build a package to > library. I am guessing you meant you want to compile a package from source? Have you looked at

[Hmisc] proposal for change in latex.summary.formula.reverse (was: [R] Sweave: superfluous newline (`\\') in tex file)

2004-09-27 Thread Patrick Drechsler
Hi, well, it wasn't a Sweave problem after all. Seems to have something to do with the function `latex.summary.formula.reverse' in the package Hmisc. Following change seems to help (at least for my purpose): --88--- *** /usr/local/lib/R/l

[R] (no subject)

2004-09-27 Thread YiYao_Jiang
Hello everybody: I can't setup a library for some functions. Can anybody kindly give me an example about setup a library. From build a package to library. Thanks! Best Regards YiYao Jiang __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailm

[R] Re: tseries Package for R

2004-09-27 Thread Adrian Trapletti
Wizon wrote: I am using Mac OSX. I am first starting to use R and have not installed any packages yet. I searched through the CRAN site for a Mac OSX version, but did not find one. I downloaded the tar.gz package. Will this work on the Mac? Is there a way to get a package that I don't have

Re: [R] An index of all possible combinations of variables in a data fram e

2004-09-27 Thread Gabor Grothendieck
Alan Simpson robertsresearch.com.au> writes: : Does anybody know of any way to create an index of all the possible : combinations of variables (factors) in a data frame? ie for 3 factors A, B & : C we have : : A : B : C : AB : AC : BC : ABC : : which equates to columns 1, 2, 3, 1:2, (1,3), 2:

Re: [R] KS test

2004-09-27 Thread Vaidotas Zemlys
Hi, > I have a sample, and I want to test if its distribution is normal. So I > would like to perform a one sample KS test but I cannot find the "y" > argument representing the "character string naming a distribution > function" according to the ?ks.test help page. > It is impossible forme to ha

[R] An index of all possible combinations of variables in a data fram e

2004-09-27 Thread Alan Simpson
Hello list Does anybody know of any way to create an index of all the possible combinations of variables (factors) in a data frame? ie for 3 factors A, B & C we have A B C AB AC BC ABC which equates to columns 1, 2, 3, 1:2, (1,3), 2:3 and 1:3. I realise that a function like model.matrix do

Re: [R] optim error in arima

2004-09-27 Thread Vaidotas Zemlys
Hi, On Mon, 27 Sep 2004 09:02:39 -0700 (PDT), Nathaniel B. Derby <[EMAIL PROTECTED]> wrote: > Hello, > > I'm fitting a series of ARIMA models to a data set to compare fits. After > taking the logs of the data and then differencing them to induce stationarity, > I execute > > arima( y, order=c

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

2004-09-27 Thread elvis
XLSolutions Corporation (www.xlsolutions-corp.com) is pleased to announce a two-day course, "Splus/R: Complementing and Extending Statistical Computing for SAS Users" www.xlsolutions-corp.com/Rsas.htm Dates/City: October 28-29 Raleigh, NC November 4-5 Boston, MA T

RE: [R] smoothing noisy data with a twist

2004-09-27 Thread Liaw, Andy
One thing I would try is to supply 1/sd(y) as the weights to smoothers that can accept them; e.g., loess(). Andy > From: Matt Gibbs > > Hi, > > I have a set of observations (x,y), derived from a previous > estimation. > For each observation I also have an estimated variance s(y) > derived fr

[R] private on site R training solicited

2004-09-27 Thread Vadim Ogranovich
Hi, R is catching up even with the hardest Excelists. At our company we are exploring the possibility of having some of the R&D staff introduced to R during a short on site class in San-Francisco, California. The number of people in the group will be about 5 - 7. If you are interested in deliveri

[R] smoothing noisy data with a twist

2004-09-27 Thread Matt Gibbs
Hi, I have a set of observations (x,y), derived from a previous estimation. For each observation I also have an estimated variance s(y) derived from the first stage. The problem is that I need to smooth the data (x,y) while taking into account the fact that the y's have been estimated at a prev

Re: [R] passing formula arg to mgcv::gam

2004-09-27 Thread Gabor Grothendieck
How about environment(formula) <- environment() Vadim Ogranovich evafunds.com> writes: : : This is a self-response . : : It was indeed a problem with environments. One way to get around is to "reset" the environment, e.g. inside : callGam do : formula <- as.formula(unclass(formula)) :

Re: [R] sapply behavior

2004-09-27 Thread Gabor Grothendieck
Elizabeth Purdom stanford.edu> writes: : : Hi, : : I use sapply very frequently, but I have recently noticed a behavior of : sapply which I don't understand and have never seen before. Basically, : sapply returns what looks like a matrix, says it a matrix, and appears to : let me do matrix

Re: [R] sapply behavior

2004-09-27 Thread Douglas Bates
Elizabeth Purdom wrote: I use sapply very frequently, but I have recently noticed a behavior of sapply which I don't understand and have never seen before. Basically, sapply returns what looks like a matrix, says it a matrix, and appears to let me do matrix things (like transpose). But it is al

RE: [R] sapply behavior

2004-09-27 Thread Liaw, Andy
The problem is that temp2 is a data frame, and the function you are sapply()ing to returns a row from a data frame. A data frame is really a list, with each variable corresponding to a component. If you extract a row of a data frame, you get another data frame, not a vector, even if all variables

RE: [R] using tcltk in R under ESS/XEmacs on Windows

2004-09-27 Thread Shawn Boles
Tony: It is indeed most amazing that you have been able to get ESS/Emacs running under Windows. And much appreciated by those of us who have to moil around with MessySoft machines. Thanks to all who have contributed to the effort. Cheers, Shawn Boles -Original Message- From: A.J.

[R] sapply behavior

2004-09-27 Thread Elizabeth Purdom
Hi, I use sapply very frequently, but I have recently noticed a behavior of sapply which I don't understand and have never seen before. Basically, sapply returns what looks like a matrix, says it a matrix, and appears to let me do matrix things (like transpose). But it is also a list and behave

RE: [R] passing formula arg to mgcv::gam

2004-09-27 Thread Vadim Ogranovich
This is a self-response :-). It was indeed a problem with environments. One way to get around is to "reset" the environment, e.g. inside callGam do formula <- as.formula(unclass(formula)) Not too aesthetic, but works. Is there a less kludgy way to do this? BTW, forgot to mention. This is R-1.

[R] passing formula arg to mgcv::gam

2004-09-27 Thread Vadim Ogranovich
Hi, I have a function, callGam, that fits a gam model to a subset of a dataframe. The argument to callGam is a formula, the subset is determined inside the function itself. My naïve approach generates and error, see below. I guess this is because 'idx' is loocked up in the environment of 'formu

Re: [R] Gridbase basic question

2004-09-27 Thread Paul Murrell
Hi Sean Davis wrote: All, I have a simple plot(x,y) and I would like to then insert rectangles of some length (in native coordinates) and height fixed to 0.5 in native coordinates. I can't quite get the code right to do this. Can anyone give me a quick example of how to do this? I looked t

Re: [R] Looking for .Call functions

2004-09-27 Thread Douglas Bates
Nathaniel B. Derby wrote: Hi, In my ongoing quest to track down the source of an error (see message "[R] optim error in arima" above), I find in the cource code for arima0 the following: arma0f <- function(p) { par <- as.double(fixed) par[mask] <- p .Call("arma0fa", G

Re: [R] multinom object :way of plotting??

2004-09-27 Thread John Fox
Dear Camille, You might be interested in a paper (available at http://socserv.socsci.mcmaster.ca/jfox/logit-effect-displays.pdf) that Bob Andersen and I wrote on this topic. The paper deals with graphing multinomial-logit and proportional-odds models. Regards, John On 27 Sep 2004 18:16:53 +0100

[R] Looking for .Call functions

2004-09-27 Thread Nathaniel B. Derby
Hi, In my ongoing quest to track down the source of an error (see message "[R] optim error in arima" above), I find in the cource code for arima0 the following: arma0f <- function(p) { par <- as.double(fixed) par[mask] <- p .Call("arma0fa", G, par, PACKAGE = "stats")

Re: [R] Re: cannot assign dimnames

2004-09-27 Thread Peter Dalgaard
"Dan Bebber" <[EMAIL PROTECTED]> writes: > Dear list, > > Please ignore my earlier message on this topic. I was under the mistaken > impression that dimnames() named the dimensions themselves, rather than the > indices within the dimensions. The dimnames list can be named though: > matrix(1:4,2

Re: [R] Re: cannot assign dimnames

2004-09-27 Thread Gabor Grothendieck
Gabor Grothendieck myway.com> writes: : : Dan Bebber forestecology.co.uk> writes: : : : Please ignore my earlier message on this topic. I was under the mistaken : : impression that dimnames() named the dimensions themselves, rather than the : : indices within the dimensions. : : What you are

Re: [R] Re: cannot assign dimnames

2004-09-27 Thread Gabor Grothendieck
Dan Bebber forestecology.co.uk> writes: : Please ignore my earlier message on this topic. I was under the mistaken : impression that dimnames() named the dimensions themselves, rather than the : indices within the dimensions. What you are referring to is done in R by referring to the names of t

[R] [R-pkgs] new version of package "distr" available

2004-09-27 Thread Peter Ruckdeschel
We would like to announce the availability on CRAN of a new version (1.4) of our package "distr" . - Changes from 1.3 to 1.4 -To avoid name collisions with short forms for TRUE and FALSE: classes T and F (T- an

Re: [R] exponential correlation?

2004-09-27 Thread TRAMIER Blaise
On Sat, Sep 25, 2004 at 01:21:34PM -0700, Spencer Graves wrote: > The "nlme" package has "corExp" for estimating the nuggett effect > n and the range d for an exponential spatial correlation structure = n + > (1-n)*exp(-r/d), where r = distance between two observations. See > library(nlme)