Re: [R] Pros and Cons of R

2008-05-24 Thread DavidM.UK
I think one significant problem is the lack of 3D graphics support with interactivity as per MATLAB ( I here Xgobi offers something hear but I couldn't comment having not used it) On the GUI issue, I'm split - once you get used to R then it's great just to use the command line - but as a language

[R] RSPerl & OS X

2008-05-24 Thread DavidM.UK
Hi, I'm wanting to call R from Perl via the RSPerl package. However I cannot seem to install it on my Macbook (OS X Tiger - R 2.6 - Perl 5.8.6). I try to install the source downloaded from the sigmahat website - but it seems to fail - when I search my system for R.pm - I can't find it? Something

Re: [R] GARCH-like

2008-05-24 Thread DavidM.UK
Renato, As you may know the two routines for fitting GARCH models are garchFit [fGarch] and garch [tseries]. The RMetrics [who are behind the fGarch library] team have usefully provided a white paper on Garch modeling available from their website, which includes a simple example of how to fit a G

Re: [R] RSPerl & OS X

2008-05-25 Thread DavidM.UK
Hi Duncan, That fix worked I tested it with plot.pl and test2.pl, but I think a similar problem is occurring with RGtk, which I need to install before I can use RGtkviewers which in turn I need before I install IDocs :) I'm hoping the combination of those modules will allow me to produce interact

Re: [R] difference between nlm and nlminb

2008-06-11 Thread DavidM.UK
I believe nlminb() performs *constrained* optimization, where as nlm() is for *unconstrained* opimization So I guess nlm() is for solving min(f[a,b]), and nlminb() min(f[a,b]) given a+b <= c FYI I think optim() also does constrained optimization, well I've used for min(f[a,b]) given a <= a* and

Re: [R] Finding Coordinate of Max/Min Value in a Data Frame

2008-06-11 Thread DavidM.UK
Firstly surely (CL,PC5) = -0.7416656 is the minima? I think something like this should work, though I'm not sure library(MASS) data(crabs) crab.pca <- prcomp(crabs[,4:8],retx=TRUE) x<- crab.pca$rotation c.len = length(x[,1]) r.len = length(x[1,]) maxy = which(x == min(x)) x.co <- ceiling(max

Re: [R] difference between nlm and nlminb

2008-06-12 Thread DavidM.UK
I would welcome suggestions of where > one might find such code. > > > On Wed, Jun 11, 2008 at 3:16 AM, DavidM.UK <[EMAIL PROTECTED]> > wrote: >> >> I believe nlminb() performs *constrained* optimization, where as nlm() is >> for >> *unconstrained*

Re: [R] sprucing up the R homepage

2007-09-29 Thread DavidM.UK
Personally I think the homepage needs a much better image not a "nice" version of what is currently displayed. Time Series is completely missing at the moment. Including something from the fSeries .garchFit() routine would be a great to see (well done to the RMetrics team on making it look good).

Re: [R] New R website: R-Cookbook.com

2007-09-29 Thread DavidM.UK
Hi, That looks great, but maybe you should have a field "R Version Used" too. Of course lots of code in specific versions of R fail when applied in alternative versions. Best, David U Bristol, UK PG Student Jeff-136 wrote: > > R Community, > > I've put together a website that I thought th