Re: [R] error in random forest

2008-03-08 Thread David Katz
I've had the same problem and solved it by removing the cases with the new levels - they need to be handled some other way, either by building a new model or reassigning the factor level to one in the training set. Nagu wrote: > > Hi, > > I get the following error when I try to predict the pr

[R] help

2008-03-08 Thread kike díaz peñaloza
Hello, nowadays I am employed at my thesis with the link cauchit, nevertheless I have not found theory it brings over of this one, if someone could help one would be grateful for it very much. You forgive for my English, I am from Chile. Regards [[alternative HTML version deleted]] ___

[R] FW: [OT] "normal" (as in "Guassian")

2008-03-08 Thread Izmirlian, Grant (NIH/NCI) [E]
Wouldn't you agree that maybe the word 'normal' has something to do with the concept of 'average' as it follows from a given CLT applying to partial sums, S_n, of a given sequence having identical means, mu, and variances, sig^2, that for finite n, a we have the following weak approximation: S_n/

Re: [R] Passing function to tapply as a string

2008-03-08 Thread Izmirlian, Grant (NIH/NCI) [E]
>From what you've provided its nearly impossible to help you. I think that I understand enough to provide a solution the problem that I believe you are posing. First some comments: (1) You can't expect that passing a character string to the argument of tapply that expects a function to work

[R] Formula for whether hat value is influential?

2008-03-08 Thread Paul Lynch
I was wondering if someone might be able to tell me what formula R's influence.measures function uses for determining whether the hat value it computes is influential (i.e., the true/false value in the "hat" column of the returned is.inf data frame). The reason I'm asking is that its results disag

Re: [R] white lines in large plot

2008-03-08 Thread Don MacQueen
I have seen this sort of appearance on screen when plotting very dense grids. When I use a different device, such as pdf(), no such artifacts appear. This supports Uwe's suggestion. -Don At 7:38 PM +0100 3/8/08, Uwe Ligges wrote: >Paul Winward wrote: >> Hi, >> >> I have a plot with about 2 m

Re: [R] draw partition lines

2008-03-08 Thread stephen sefick
?lattice take a look at the lattice package On Sat, Mar 8, 2008 at 6:44 PM, questions? <[EMAIL PROTECTED]> wrote: > I am using par(mfrow(4,2)...) to plot multiple graphs in one frame. > However, the plots naturally partitioned into two sets, the first two > rows and the 3rd and 4th row are sligh

Re: [R] How to do multi-factor stratified sampling in R

2008-03-08 Thread Robert A LaBudde
At 03:54 PM 3/8/2008, David Winsemius wrote: >"Robert A. LaBudde" <[EMAIL PROTECTED]> wrote in >news:[EMAIL PROTECTED]: > > > Given a set of data with a number of variables plus a response, I'd > > like to obtain a randomized subset of the rows such that the > > marginal proportions of each variabl

[R] draw partition lines

2008-03-08 Thread questions?
I am using par(mfrow(4,2)...) to plot multiple graphs in one frame. However, the plots naturally partitioned into two sets, the first two rows and the 3rd and 4th row are slightly different, I want them to be in one frame, but I also want to draw a line (or something to make top two rows/bottom two

[R] draw partition lines

2008-03-08 Thread questions?
I am using par(mfrow(4,2)...) to plot multiple graphs in one frame. However, the plots naturally partitioned into two sets, the first two rows and the 3rd and 4th row are slightly different, I want them to be in one frame, but I also want to draw a line (or something to make top two rows/bottom two

[R] Elbow criterion plots for determining k in hierarchical clustering

2008-03-08 Thread Guera
Hi There, I'm working on some cluster analyses on a large data-set using hclust with Wards method and Manhattan (city block) distance measures. I've created dendrograms to illustrate the clustering criteria, but would like to create a plot to examine for the classic elbow criterion to use in det

Re: [R] Combine two columns

2008-03-08 Thread amarkey
That worked perfectly. Thank you!!! Original message >Date: Fri, 7 Mar 2008 18:13:24 -0300 >From: "Henrique Dallazuanna" <[EMAIL PROTECTED]> >Subject: Re: [R] Combine two columns >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >Cc: r-help@r-project.org > >Try: > >transform(x, AL1Al2 =

Re: [R] ks.test troubles

2008-03-08 Thread Uwe Ligges
Martin Kaffanke wrote: > Am Samstag, den 08.03.2008, 19:34 +0100 schrieb Uwe Ligges: >> Martin Kaffanke wrote: >>> Hi there! >>> >>> I have two little different data. One is a computer test on people, the >>> other is a paper and pencil test. two boxplots show me that the data is >>> almost the

Re: [R] How to do multi-factor stratified sampling in R

2008-03-08 Thread David Winsemius
"Robert A. LaBudde" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Given a set of data with a number of variables plus a response, I'd > like to obtain a randomized subset of the rows such that the > marginal proportions of each variable are maintained closely in the > subset to that of

Re: [R] question

2008-03-08 Thread David Winsemius
Svyatkovskiy Alexey <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hello, > > Tell me please, can I get a sourcse code for 'lda' from MASS? > Is MASS package still present in the latest R-2.6.2 version (I > couldn't find it)? > > "lda" is in the VR (super-)package. -- David Winsemi

Re: [R] counting specific elements in a column of a matrix

2008-03-08 Thread jim holtman
?table e.g., table(your.matrix[,1]) On Sat, Mar 8, 2008 at 3:15 PM, Donna Tucker <[EMAIL PROTECTED]> wrote: > > Hello, > I would like to know how to count the number (cardinality) of a specific > element in a single row of a matrix. At this time I have 30X3 matrix. The > first column is the

[R] counting specific elements in a column of a matrix

2008-03-08 Thread Donna Tucker
Hello, I would like to know how to count the number (cardinality) of a specific element in a single row of a matrix. At this time I have 30X3 matrix. The first column is the treatment number for each data point. I would like to know how many of each treatments are in this matrix. i.e. I wa

Re: [R] Finding Interaction and main effects contrasts for two-wayANOVA

2008-03-08 Thread Dale Steele
Thanks to those who have replied to my original query. However, I'm still confused on how obtain estimates, standard error and F-tests for main effect and interaction contrasts which agree with the SAS code with output appended below. for example, ## Given the dataset (from Montgomery) twoway <-

Re: [R] how to compute uncentered (pearson correlation) correlation efficiently

2008-03-08 Thread David Winsemius
"Ng Stanley" <[EMAIL PROTECTED]> wrote:: > Seeking suggestions to compute uncentered (pearson correlation) > correlation efficiently. > > corr from stats library works on x and y columns. dist from amap > library works on x and y rows. > > My data layout is slightly different such that row(i)

Re: [R] Change the index argument of a series

2008-03-08 Thread Gabor Grothendieck
See ?rollapply and ?rollmean in the zoo package and ?filter and ?embed in the core of R. On Sat, Mar 8, 2008 at 1:38 PM, Alberto Vieira Ferreira Monteiro <[EMAIL PROTECTED]> wrote: > This is probably very trivial - so I can't find an answer in the help files. > > When I have a series x (x[1], x[2]

Re: [R] question

2008-03-08 Thread Ted Harding
On 08-Mar-08 18:04:54, Svyatkovskiy Alexey wrote: > Hello, > Tell me please, can I get a sourcse code for 'lda' from MASS? > Is MASS package still present in the latest R-2.6.2 version (I couldn't > find it)? > Thankful in advance, > Alexey. MASS is part of VR (for "Venables and Ripley"), a "bundl

Re: [R] question

2008-03-08 Thread Katharine Mullen
It is in the VR bundle (collection of packages), which is 'recommended', so it is included in all binary distributions of R; if you have the source code you find VR in R-2.6.2/src/library/Recommended On Sat, 8 Mar 2008, Svyatkovskiy Alexey wrote: > Hello, > > Tell me please, can I get a sourcse c

Re: [R] ks.test troubles

2008-03-08 Thread Martin Kaffanke
Am Samstag, den 08.03.2008, 19:34 +0100 schrieb Uwe Ligges: > > Martin Kaffanke wrote: > > Hi there! > > > > I have two little different data. One is a computer test on people, the > > other is a paper and pencil test. two boxplots show me that the data is > > almost the same. > > > > So now

[R] Change the index argument of a series

2008-03-08 Thread Alberto Vieira Ferreira Monteiro
This is probably very trivial - so I can't find an answer in the help files. When I have a series x (x[1], x[2], ... x[n]) and I want to construct a new series y (y[1], y[2], ... y[m]) such that y's are either interpolations of the x's (when m > n) or a weighted mean (when m < n), is there any dir

[R] question

2008-03-08 Thread Svyatkovskiy Alexey
Hello, Tell me please, can I get a sourcse code for 'lda' from MASS? Is MASS package still present in the latest R-2.6.2 version (I couldn't find it)? Thankful in advance, Alexey. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] white lines in large plot

2008-03-08 Thread Uwe Ligges
Paul Winward wrote: > Hi, > > I have a plot with about 2 million points. It should be a fairly dense > plot over the reals, but I'm seeing many narrow, white vertical lines > uniformly spread in my plot where nothing was plotted. I'm using a > period as the plot character. I've played aro

Re: [R] R cmd check error reg namespace

2008-03-08 Thread Uwe Ligges
Ingmar Visser wrote: > Hi, > When running R CMD check I'm getting a number of errors that I don't > quite follow and don't know where to start looking for an answer, any > hints appreciated. > > R CMD check trunk > * checking for working latex ... OK > * using log directory '/Users/ivisser/D

Re: [R] ks.test troubles

2008-03-08 Thread Uwe Ligges
Martin Kaffanke wrote: > Hi there! > > I have two little different data. One is a computer test on people, the > other is a paper and pencil test. two boxplots show me that the data is > almost the same. > > So now I'd like to know if I could handle all data as one, by testing > with ks.test:

Re: [R] Cross Validation

2008-03-08 Thread Uwe Ligges
JStainer wrote: > an example from my R table will calculating the average LOOCV for two > treatments ALL and AML > > table > ALL AML > 11.2 .3 > 2.87.3 > 31.1.5 > 41.2.7 > 53.21.2 > 61.11.1 > 7.90 .99 > 81.1.32 > 92.

Re: [R] plotting NAs

2008-03-08 Thread Gabor Grothendieck
Please do not cross post. Note from yesterday: https://stat.ethz.ch/pipermail/r-help/2008-March/156586.html On Sat, Mar 8, 2008 at 12:40 PM, John McHenry <[EMAIL PROTECTED]> wrote: > Hi WizaRds, > > (I've cross-posted to r-sig-finance because a lot of people there use 'zoo' > objects). > > I'm

Re: [R] Problems with installing the rgl package on Linux

2008-03-08 Thread George N. White III
On Sat, 8 Mar 2008, Paul Smith wrote: > Dear All, > > I am trying to install the rgl package on R 2.6.1 running on Fedora 8 > (Linux), but I am experiencing the following problems: > > - > configure: error: X11 not found but required, configure aborted. >

[R] plotting NAs

2008-03-08 Thread John McHenry
Hi WizaRds, (I've cross-posted to r-sig-finance because a lot of people there use 'zoo' objects). I'm trying to plot 2 time series lined up with par(mfrow=c(2,1)), so that the time index is the same for the two series. The data have monthly frequency. An example will illustrate: # data for t

[R] ks.test troubles

2008-03-08 Thread Martin Kaffanke
Hi there! I have two little different data. One is a computer test on people, the other is a paper and pencil test. two boxplots show me that the data is almost the same. So now I'd like to know if I could handle all data as one, by testing with ks.test: > ks.test(el$angststoer, fl$angsts

[R] How to do multi-factor stratified sampling in R

2008-03-08 Thread Robert A. LaBudde
Given a set of data with a number of variables plus a response, I'd like to obtain a randomized subset of the rows such that the marginal proportions of each variable are maintained closely in the subset to that of the dataset, and possibly maintaining as well the two-factor interaction margina

Re: [R] Non-visible functions are asterisked

2008-03-08 Thread roger koenker
short answer: non-visible means that they are not exported from a package with a namespace so that they are "not found" if you just type the name. However, you can see these functions if you use getAnywhere(fname) longer answer: see the section on namespaces in the writing R extensions

Re: [R] analysing mixed effects/poisson/correlated data

2008-03-08 Thread Manuel Morales
On Sat, 2008-03-08 at 08:07 -0600, Douglas Bates wrote: > On Sat, Mar 8, 2008 at 2:57 AM, Alexandra Bremner > <[EMAIL PROTECTED]> wrote: > > I am attempting to model data with the following variables: > > > timepoint - n=48, monthly over 4 years > > hospital - n=3 > > opsn1 - no of outcomes

Re: [R] Finding Interaction and main effects contrasts for two-wayANOVA

2008-03-08 Thread Gregory Warnes
Dale, You might find it fruitful to look at the help pages for fit.contrast () and estimble() functions in the gmodels package, and the contrast () functions in the Hmisc package. -Greg On Mar 7, 2008, at 4:20PM , Thompson, David ((MNR)) wrote: > Dale, > > Other than the first SAS contras

Re: [R] Non-visible functions are asterisked

2008-03-08 Thread Muenchen, Robert A (Bob)
Thank you all very much! Bob > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Muenchen, Robert A (Bob) > Sent: Saturday, March 08, 2008 10:49 AM > To: [EMAIL PROTECTED] > Subject: [R] Non-visible functions are asterisked > > Dear R-Help

Re: [R] Non-visible functions are asterisked

2008-03-08 Thread Gabor Grothendieck
It means that the package has not exported it so normally you would not access it directly. For example, for summary.princomp you would normally pass a princomp object to the summary generic. If you did want to access summary.princomp directly, since it has not been exported, you can use the form

Re: [R] Non-visible functions are asterisked

2008-03-08 Thread Berwin A Turlach
G'day Bob, On Sat, 8 Mar 2008 10:48:49 -0500 "Muenchen, Robert A (Bob)" <[EMAIL PROTECTED]> wrote: > What does the non-visible mean? Type at the command line > summary.aov and hit return. Note, leave out the `()'. Now type at the command line > summary.princomp That should illustrate what

Re: [R] Non-visible functions are asterisked

2008-03-08 Thread Duncan Murdoch
On 08/03/2008 10:48 AM, Muenchen, Robert A (Bob) wrote: > Dear R-Helpers, > > I suspect I'm about to ask a FAQ, but I haven't been able to find an > answer in the FAQ, AItR or an R Site Search. When I look at the methods > of summary (below) it says, "Non-visible functions are asterisked". I > loo

[R] Non-visible functions are asterisked

2008-03-08 Thread Muenchen, Robert A (Bob)
Dear R-Helpers, I suspect I'm about to ask a FAQ, but I haven't been able to find an answer in the FAQ, AItR or an R Site Search. When I look at the methods of summary (below) it says, "Non-visible functions are asterisked". I looked at the help file for summary.princomp, which did not comment on

Re: [R] Errors in in my code

2008-03-08 Thread Christophe Lo
thank you so much. I must have spend a few hours last night trying to figure out. thank you again, claire > Date: Sat, 8 Mar 2008 09:13:31 -0500> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> Subject: Re: [R] Errors in in my code> CC: r-help@r-project.org> > > It says the file you are t

[R] cross validation

2008-03-08 Thread JStainer
Hi, I must have accidentally deleted my previous post. I am having a really difficult time calculating the LOOCV (leave out cross validation). table in excel genes ALL AML p.value 1 1.2 .3 .01 2 .87.3 .03 3 1.1.5 .05 4 1.2

Re: [R] Errors in in my code

2008-03-08 Thread jim holtman
It says the file you are trying to access it not there. Do this in two steps so you can see what is happening: fileName <- paste(dataDirectory, annotation_HGU133Plus2, sep = "/") cat( fileName) ... now use in it your read My guess is that what you think is in "annotation_HGU133Plus2" is not the

Re: [R] expression matrix

2008-03-08 Thread Martin Morgan
Christophe -- You'll want to coerce golubMerge to an ExpressionSet. > library(Biobase) > library(golubEsets) > data(golubMerge) > golubUpdated <- as(golubMerge, "ExpressionSet") Warning messages: 1: In asMethod(object) : missing or mis-shaped 'se.exprs' in original object; creating ExpressionSet

Re: [R] Deleting rows satisfying a certain condition (sum of some colums>2)

2008-03-08 Thread jim holtman
Here is a way of doing it. You check to see which ones meet the criteria and then delete them. > # create indices of columns to match > first.col <- seq(1, to=ncol(SS) - 2) > sec.col <- seq(3, to=ncol(SS)) > > # determine rows that met criteria > meet.crit <- apply(SS, 1, function(.row) any((.row

Re: [R] analysing mixed effects/poisson/correlated data

2008-03-08 Thread Douglas Bates
On Sat, Mar 8, 2008 at 2:57 AM, Alexandra Bremner <[EMAIL PROTECTED]> wrote: > I am attempting to model data with the following variables: > timepoint - n=48, monthly over 4 years > hospital - n=3 > opsn1 - no of outcomes > total.patients > skillmixpc - skill mix percentage > nurse.hours.p

Re: [R] expression matrix

2008-03-08 Thread Douglas Bates
On Sat, Mar 8, 2008 at 7:00 AM, Keizer_71 <[EMAIL PROTECTED]> wrote: > Hello, > I am to run this R script but i keep getting this error. > > expr<-exprs(golubMerge) > Warning message: > The exprSet class is deprecated, use ExpressionSet instead > I tried to find information on the website

[R] [R-pkgs] A new version of paran is available

2008-03-08 Thread adinno
Horn's parallel analysis method of deciding how many factors to retain has been implemented in R in the paran package. This update to paran adds an option to produce a graph of the analysis along the lines of what Horn presented in his seminal 1965 paper. It also makes a few minor improvements

[R] expression matrix

2008-03-08 Thread Keizer_71
Hello, I am to run this R script but i keep getting this error. > expr<-exprs(golubMerge) Warning message: The exprSet class is deprecated, use ExpressionSet instead I tried to find information on the website but no luck. (exprSet...etc) thank you. -- View this message in context: http://ww

[R] expression matrix

2008-03-08 Thread Keizer_71
Hello, I am to run this R script but i keep getting this error. > expr<-exprs(golubMerge) Warning message: The exprSet class is deprecated, use ExpressionSet instead I tried to find information on the website but no luck. (exprSet...etc) thank you. -- View this message in context: http://ww

Re: [R] polygon shapefile from line edge coordinate list

2008-03-08 Thread Roger Bivand
Murray Richardson utoronto.ca> writes: > > Hello, > > I am looking for advice on a task I am trying to complete. > > I have a 4 column dataframe defining the start and end coordinates of > line edges (from a CGAL alpha shapes function to define concave hulls > from point clusters). I would

Re: [R] How to plot raster obtained from readRAST6 in grey scale?

2008-03-08 Thread Roger Bivand
Uwe Ligges statistik.tu-dortmund.de> writes: > > > Rainer M Krug wrote: > > Hi > > > > I have a raster which I would like to plot in a greyscale instead of > > colour. Is this possible, and how? > > Probably, and we may tell you how given you tell us what "raster" means: > > > ?raster > No

Re: [R] Cross Validation

2008-03-08 Thread JStainer
JStainer wrote: > > Hi, > > I am trying to find out the best way to calculate the average LOOCV in R > for several classifier for, KNN, centroid classification, DLDA and SVM. > > I have four types of diseases and 62 samples. > > Is there a R code available to do this? > > > -- View thi

Re: [R] Cross Validation

2008-03-08 Thread JStainer
an example from my R table will calculating the average LOOCV for two treatments ALL and AML table ALL AML 11.2 .3 2.87.3 31.1.5 41.2.7 53.21.2 61.11.1 7.90 .99 81.1.32 92.1 1.2 JStainer wrote: > > Hi, > >

Re: [R] Cross Validation

2008-03-08 Thread JStainer
an example from my R table will calculating the average LOOCV for two treatments ALL and AML table ALL AML 11.2 .3 2.87.3 31.1.5 41.2.7 53.21.2 61.11.1 7.90 .99 81.1.32 92.1 1.2 JStainer wrote: > > Hi, > >

[R] Problems with installing the rgl package on Linux

2008-03-08 Thread Paul Smith
Dear All, I am trying to install the rgl package on R 2.6.1 running on Fedora 8 (Linux), but I am experiencing the following problems: - configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package 'rgl' ** Removi

[R] Cross Validation

2008-03-08 Thread JStainer
Hi, I am trying to find out the best way to calculate the average LOOCV in R for several classifier for, KNN, centroid classification, DLDA and SVM. I have four types of diseases and 62 samples. Is there a R code available to do this? -- View this message in context: http://www.nabble.com/

Re: [R] Error message while trying to update packages: Error in gzfile(file, mode) : unable to open connection

2008-03-08 Thread Prof Brian Ripley
On Sat, 8 Mar 2008, Bob Green wrote: > Hello, > > I have just installed v 2.6.2 on a new computer running Windows XP > and tried to perform 'update packages' via the menu option on the R console. > > Any advice on the following problem is much appreciated. > > Bob > > > Below are the warning and

Re: [R] Correlation matrix one side with significance

2008-03-08 Thread Liviu Andronic
On 3/5/08, Martin Kaffanke <[EMAIL PROTECTED]> wrote: > Now I'd like to have it one sided, means only the left bottom side to be > printed (the others are the same) and I'd like to have * where the > p-value is lower than 0.05 and ** lower than 0.01. Look here [1], at "Visualizing Correlations"

[R] R cmd check error reg namespace

2008-03-08 Thread Ingmar Visser
Hi, When running R CMD check I'm getting a number of errors that I don't quite follow and don't know where to start looking for an answer, any hints appreciated. R CMD check trunk * checking for working latex ... OK * using log directory '/Users/ivisser/Documents/projects/ depmixProject/depmi

[R] Error message while trying to update packages: Error in gzfile(file, mode) : unable to open connection

2008-03-08 Thread Bob Green
Hello, I have just installed v 2.6.2 on a new computer running Windows XP and tried to perform 'update packages' via the menu option on the R console. Any advice on the following problem is much appreciated. Bob Below are the warning and error messages received. A search of the hard drive

Re: [R] ask for help on nonlinear fitting

2008-03-08 Thread Dieter Menne
Ruqiang Liang gmail.com> writes: > > I have a table like the following. I want to fit Cm to Vm like this: > Cm ~Cl+Q1*b1*38.67*exp(-b1*(Vm-Vp1)*0.03867)/(1+exp(-b1*(Vm-Vp1)*0.03867))^2+ Q2*b2*38.67*exp(-b2*(Vm-Vp2)*0.03867)/(1+exp(-b2*(Vm-Vp2)*0.03867))^2 > > I use nls, with start=list(Q1=2e-3,

[R] analysing mixed effects/poisson/correlated data

2008-03-08 Thread Alexandra Bremner
I am attempting to model data with the following variables: timepoint - n=48, monthly over 4 years hospital - n=3 opsn1 - no of outcomes total.patients skillmixpc - skill mix percentage nurse.hours.per.day Aims To determine if skillmix affects rate (i.e. no.of.outcomes/total.patien

[R] Errors in in my code

2008-03-08 Thread Claire_6700
Hi Everyone, I am very new to R. When i run the code yesterday, it was working fine. I was able to find gene annotation. somehow, today, when i try to run it again, it is giving me errors message that i don't understand. It says that it cannot open file. what file is it looking for? ###