[R] imbalanced data set

2005-07-23 Thread Weiwei Shi
Hi, I have a question of classification on imbalanced dataset. I am wondering if there is a package which can solve this problem via sampling approach, like one-sided selection. A follow-up question is, how to select those 'representative' samples and remove noise/borderlines and redundancy in or

Re: [R] calling R from C or C++

2005-07-23 Thread Bahoo
> Hi, > > I have C/C++ code from which I wish I could call R > to > do something useful. By calling I mean linking with the R shared library, instead of R BATCH. In particular, I want to use regression functions such as ridge and locfit. > > I saw a 2003 message by Thomas saying that "You ca

[R] calling R from C or C++

2005-07-23 Thread Bahoo
Hi, I have C/C++ code from which I wish I could call R to do something useful. I saw a 2003 message by Thomas saying that "You can compile R as a shared library, which allows you to construct and evaluate R expressions from C." Any more information would be helpful. I am looking for some docume

Re: [R] "%03d" in the pdf command

2005-07-23 Thread Ted Harding
On 23-Jul-05 Prof Brian Ripley wrote: > On Sat, 23 Jul 2005, Dennis Fisher wrote: > >> The pdf man page contains the following text: >> >> pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), >> width = 6, height = 6, onefile = TRUE, family = "Helvetica", >> title = "R

Re: [R] "%03d" in the pdf command

2005-07-23 Thread Prof Brian Ripley
On Sat, 23 Jul 2005, Dennis Fisher wrote: > The pdf man page contains the following text: > > pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), > width = 6, height = 6, onefile = TRUE, family = "Helvetica", > title = "R Graphics Output", fonts = NULL, version = "1.1

[R] [R-pkgs] tseriesChaos ver. 0.1

2005-07-23 Thread Antonio, Fabio Di Narzo
Dear all, I have uploaded to CRAN a new package: tseriesChaos. This is an early version (0.1) with basic tools for the explorative analysis of nonlinear time series motivated by chaos theory. Until now, the package is largely inspired by the TISEAN project (by Rainer Hegger, Holger Kantz and Thoma

[R] "%03d" in the pdf command

2005-07-23 Thread Dennis Fisher
The pdf man page contains the following text: pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), width = 6, height = 6, onefile = TRUE, family = "Helvetica", title = "R Graphics Output", fonts = NULL, version = "1.1", paper, encoding, bg, fg, pointsize)

Re: [R] Question about 'text' (add lm summary to a plot)

2005-07-23 Thread Gabor Grothendieck
Here are a few tweaks. We form a matrix and use round and format to automatically get the right number of decimals and widths right. We have added extra digits to show that they do not affect the result. Also the paste in the R^2 line was eliminated. nn <- matrix(c(-10.661, 1.961,

Re: [R] PBSmapping and shapefiles

2005-07-23 Thread Roger Bivand
On Fri, 22 Jul 2005, Denis Chabot wrote: > Hi, > > I got no reply to this: > Le 16-Jul-05 à 2:42 PM, Denis Chabot a écrit : > > > Hi, > > > > Is there a way, preferably with R, to read shapefiles and transform > > them in a format that I could then use with package PBSmapping? > > > > I have b

Re: [R] Question about 'text' (add lm summary to a plot)

2005-07-23 Thread Dan Bolser
On Sat, 23 Jul 2005, Dan Bolser wrote: >On Fri, 22 Jul 2005, Marc Schwartz (via MN) wrote: > >>Ok guys, >> >>So I played around with this a bit, going back to Dan's original >>requirements and using Thomas' do.call() approach with legend(). Gabor's >>approach using sapply() will also work here. I

Re: [R] Question about 'text' (add lm summary to a plot)

2005-07-23 Thread Dan Bolser
On Fri, 22 Jul 2005, Marc Schwartz (via MN) wrote: >Ok guys, > >So I played around with this a bit, going back to Dan's original >requirements and using Thomas' do.call() approach with legend(). Gabor's >approach using sapply() will also work here. I have the following: > ># Note the leading space

Re: [R] Package libblas.so.3 not found installing R2.1.1 on Linux FC4

2005-07-23 Thread Peter Dalgaard
"John Sorkin" <[EMAIL PROTECTED]> writes: > I am trying to install > R.2.1.1 under Linux FC4 using RPM. During the installation I get the > following message: > The following package could not be found on your system. Installation > cannot continue until it is installed. > > The package in ques

[R] Package libblas.so.3 not found installing R2.1.1 on Linux FC4

2005-07-23 Thread John Sorkin
I am trying to install R.2.1.1 under Linux FC4 using RPM. During the installation I get the following message: The following package could not be found on your system. Installation cannot continue until it is installed. The package in question of libblas.so.3. Does anyone know where I can get t

Re: [R] cor(X) with P-Value

2005-07-23 Thread Frank E Harrell Jr
Worik Turei stanton wrote: > Friends > > I am new to R (and statistics) so am struggling a bit. > > Briefly... > > I am interested in getting the P-Value from cor(X) where X is a matrix. > > I have found cor.test. > > Verbosely... > > I have 4 vectors and can generate the corellation matrix..

Re: [R] The steps of building library in R 2.1.1

2005-07-23 Thread Duncan Murdoch
Nick Drew wrote: > Agreed, It takes a lot of work for one to create > his/her first package. And > there are many opportunities to get it wrong. > > I just created my first package, with thanks to Gabor, > Peter Rossi (and his > excellent document at > http://gsbwww.uchicago.edu/fac/peter.rossi/re

Re: [R] cor(X) with P-Value

2005-07-23 Thread Chuck Cleland
These functions are based on posts to either R-Help or S-News by Gabor Grothendieck and Bill Venables. # pairwise sample size # Gabor G - 11/23/2004 R-help List pn <- function(X){crossprod(!is.na(X))} cor.prob <- function(X){ # Correlations Below Main Diagonal # Significance Tests with Pairwi

[R] cor(X) with P-Value

2005-07-23 Thread Worik Turei stanton
Friends I am new to R (and statistics) so am struggling a bit. Briefly... I am interested in getting the P-Value from cor(X) where X is a matrix. I have found cor.test. Verbosely... I have 4 vectors and can generate the corellation matrix... > cor(cbind(X1, X2, X3, X4)) X1

Re: [R] about nnet package

2005-07-23 Thread Uwe Ligges
Wensui Liu wrote: > you might need quit("yes") when you exit R. I think nobody want to save the whole workspace if just one object is of interest, hence you save(), as already mentioned in a former post. Uwe Ligges > On 7/22/05, Baoqiang Cao <[EMAIL PROTECTED]> wrote: > >>Hello Uwe Ligges, >>

Re: [R] Lattice: reversing order of panel placement in conditional histograms

2005-07-23 Thread Prof Brian Ripley
>From what I understand, you want to set up a factor with the levels reversed. It is not that `5 is larger than 1', but that you created a factor with the levels in alphabetic order. Lattice plots in the order of the levels. Something like f <- factor(f, levels=rev(levels(f))) will do this.

Re: [R] poisson fit for histogram

2005-07-23 Thread Prof Brian Ripley
What does fit.dist do that fitdistr (MASS) does not in this context? (It plots, but that is very easy to do in base R. However, to see if a Poisson fits you need a test of goodness-of-fit.) BTW, `decompress and store the files in your "library" folder' is on no OS (you did not mention one but