[R] what does this syntax mean?

2005-06-18 Thread ronggui
i study the code of function ave,but i can understand one line of the syntax. > ave function (x, ..., FUN = mean) { n <- length(list(...)) if (n) { g <- interaction(...) split(x, g) <- lapply(split(x, g), FUN) } else x[] <- FUN(x) x } my question is : what does

Re: [R] Trying to build R sources on Windows

2005-06-18 Thread Bill Northcott
On 19/06/2005, at 11:31 AM, Duncan Murdoch wrote: >> PS The immediate cause of the header file problems was src/ >> gnuwin32/ fixed/h/config.h. This needs to be regenerated for >> every build configuration. This is not documented except >> obliquely in src/ gnuwin32/Maintainer.notes >> >>

Re: [R] Trying to build R sources on Windows

2005-06-18 Thread Duncan Murdoch
Bill Northcott wrote: > On 18/06/2005, at 10:34 PM, Uwe Ligges wrote: > >>>I am trying without success to build the R-2.1.0 sources on >>>Windows 2003 server. >>>I have MinGW/bin in front of cygwin/bin in the Windows path. > > >>I don't think it is a good idea to leave cygwin in your path for

Re: [R] Trying to build R sources on Windows

2005-06-18 Thread Bill Northcott
On 18/06/2005, at 10:34 PM, Uwe Ligges wrote: >> I am trying without success to build the R-2.1.0 sources on >> Windows 2003 server. >> I have MinGW/bin in front of cygwin/bin in the Windows path. > I don't think it is a good idea to leave cygwin in your path for > compiling R, even using it

[R] [R-pkgs] Release of new version of caMassClass package and new package caT ools

2005-06-18 Thread Tuszynski, Jaroslaw W.
Hi, A new version of "caMassClass" package was released today. The package contain pipeline for processing and classification of protein mass spectra data. The main change is off-spinning from the library collection of generic functions into a new package "caTools". This package, which might be us

[R] [R-pkgs] Version 1.1-0 of bayesm

2005-06-18 Thread Peter E. Rossi
Version 1.1-0 of bayesm is now available on CRAN. This version includes Bayesian inference for the NBD(Poisson) regression model and a hierarchical version of the same. It also includes an additional dataset with count data and various covariates. Comments and suggestions for improvement are mo

Re: [R] how 'stepAIC' selects?

2005-06-18 Thread Ruben Roa
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Bókony Veronika > Sent: 18 June 2005 14:00 > To: r-help@stat.math.ethz.ch > Subject: [R] how 'stepAIC' selects? > > > Dear all, > Could anyone please tell me how 'step' or 'stepAIC' works? Does it > sim

Re: [R] how 'stepAIC' selects?

2005-06-18 Thread Uwe Ligges
Bókony Veronika wrote: > Dear all, > Could anyone please tell me how 'step' or 'stepAIC' works? Does it > simply select the model with the smallest AIC from all the possible > models? Or does it perform any test eg. whether the decrease No. It works *stepwise*, hence does not inspect all possi

[R] how 'stepAIC' selects?

2005-06-18 Thread Bókony Veronika
Dear all, Could anyone please tell me how 'step' or 'stepAIC' works? Does it simply select the model with the smallest AIC from all the possible models? Or does it perform any test eg. whether the decrease in "information content" between a model with a given predictor and another without it is

Re: [R] How to get the values of a vector having the indices?

2005-06-18 Thread Uwe Ligges
Amir Safari wrote: > > > Hi > I want to get the values of a vector which I have its indices. How it is > possible? > For example after clustering , I can access to the indices of the first > cluster using: > first<- which(clusters$clustering==1) > first give me the indices, but how can I acc

Re: [R] Trying to build R sources on Windows

2005-06-18 Thread Uwe Ligges
Bill Northcott wrote: > I am trying without success to build the R-2.1.0 sources on Windows > 2003 server. > > I have MinGW/bin in front of cygwin/bin in the Windows path. > > However, I try to build, I get failures trying to include headers > which are not part of MinGW. I am definitely us

Re: [R] Fedora Core 4

2005-06-18 Thread Marc Schwartz
In follow up to Prof. Ripley's post, having participated in the referenced r-devel thread, I would note that I have been able to build Version 2.1.1 beta (2005-06-17) and all CRAN packages from source using both FC4 fortran compilers. However, I am back to using g77 based upon Prof. Ripley's recom

Re: [R] k-fold cross validation with neural networks

2005-06-18 Thread Uwe Ligges
Thorstensen Nicolas wrote: > Hi ! > > how can I do a k-fold crossvalidation with neural networks? For "feed-forward neural networks with a single hidden layer" see package "nnet" in bundle "VR" (already installed). For "automatical" crossvalidation see, e.g., function errorest() in package "ip

Re: [R] cannot coerce class "matchit" into a data.frame"

2005-06-18 Thread Uwe Ligges
Piccone, Jason E. wrote: > Greetings fellow humans, > > I am attempting to export a text file after using the MatchIt package to > match control with treatment subjects. I attempted to write.table and used > the following syntax: > > "write.table(social,"shaka.txt",sep=" > ",quote=FALSE,row.

Re: [R] Fedora Core 4

2005-06-18 Thread Prof Brian Ripley
There has been discussion of this on R-devel in the context of the release of 2.1.1. FC4 contains gfortran, not g77 (unless you install everything when you get g77 from gcc-3.2.3 in some compatibility RPM). This is not a bug: R compiled on one OS (or even machine) is not expected to work on an

[R] Fedora Core 4

2005-06-18 Thread Jonathan Baron
I had installed R from source on Fedora Core 3. Then I upgraded to Fedora Core 4, but left R alone. R worked fine, until I trued to update.packages(). Even then, many packages updated just fine, but two of them, cluster and mgcv, failed with the following error message (using cluster as an examp