[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- and

Re: [R] Re: cannot assign dimnames

2004-09-27 Thread Gabor Grothendieck
Dan Bebber danbebber at 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

Re: [R] Re: cannot assign dimnames

2004-09-27 Thread Gabor Grothendieck
Gabor Grothendieck ggrothendieck at myway.com writes: : : Dan Bebber danbebber at 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

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:

[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) } I

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

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, par,

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

[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

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] 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

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.

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

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

Re: [R] sapply behavior

2004-09-27 Thread Gabor Grothendieck
Elizabeth Purdom epurdom at 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

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

2004-09-27 Thread Gabor Grothendieck
How about environment(formula) - environment() Vadim Ogranovich vograno at 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 -

[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

[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 RD 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

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 from

[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

[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

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 have a

[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

[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

[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): --8schnipp-8--- ***