Re: [R] Stepwise regression scope: all interacting terms (.^2)

2012-11-19 Thread Mark Ebbert
yway ... HTH, > > -steve > > On Fri, Nov 16, 2012 at 4:13 PM, David Winsemius > wrote: >> >> On Nov 16, 2012, at 12:16 PM, Mark Ebbert wrote: >> >>> I haven't heard anything on this question. Is there something fundamentally >>> wrong wit

Re: [R] Stepwise regression scope: all interacting terms (.^2)

2012-11-16 Thread Mark Ebbert
I haven't heard anything on this question. Is there something fundamentally wrong with my question? Any feedback is appreciated. Mark On Nov 15, 2012, at 8:13 AM, Mark T. W. Ebbert wrote: > Dear Gurus, > > Thank you in advance for your assistance. I'm trying to understand scope > better when p

[R] Stepwise regression scope: all interacting terms (.^2)

2012-11-15 Thread Mark Ebbert
Dear Gurus, Thank you in advance for your assistance. I'm trying to understand scope better when performing stepwise regression using "step." I have a model with a binary response variable and 10 predictor variables. When I perform stepwise regression I define scope=.^2 to allow interactions be

[R] Read in cluster files (cdt, atr, gtr)

2011-10-12 Thread Mark Ebbert
Does anyone know if there is a method available to read in cluster files (cdt, atr and gtr)? I found one method (http://bioinformatics.holstegelab.nl/manuals/R/library/integromicsMethods/html/iMethods.read.tv.html), but it doesn't seem to create an object that can be used by "heatmap." The reas

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Mark Ebbert
de rownames...the cat statement in the while loop of > write.matrix could be changed to include a row name. To get he source > code of write.matrix: > > library(MASS) > write.matrix > # without the ()!! > > hope this helps more than my previous (useless) comment, > Paul &g

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Mark Ebbert
t which can be set to FALSE. > > regards, > Paul > > On 09/06/2011 02:58 PM, Mark Ebbert wrote: >> Thank you for your help. >> >> The data is meant to be processed by a separate program that expects a >> simple matrix with row and column names in ascii format.

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Mark Ebbert
2 AM, Paul Hiemstra wrote: > On 09/06/2011 06:24 AM, Mark Ebbert wrote: >> Dear R gurus, >> >> I am trying to write several large matrices (~ 1GB) to separate files. I >> have learned that write.table is simply too slow for this task and was >> attempting to

[R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Mark Ebbert
Dear R gurus, I am trying to write several large matrices (~ 1GB) to separate files. I have learned that write.table is simply too slow for this task and was attempting to use write.matrix, but write.matrix does not have the ability to include row names in the output. Anyone know why that's the

Re: [R] Convert List of Data.Frames to Data.Frame when List has NULL

2011-08-31 Thread Mark Ebbert
Yeah, I never would have come up with that one. Thanks! On Aug 31, 2011, at 2:18 PM, Jorge I Velez wrote: Hi Mark, Try do.call(rbind, tmp[!sapply(tmp, is.null)]) HTH, Jorge On Wed, Aug 31, 2011 at 4:02 PM, Mark Ebbert <> wrote: Dear R gurus, I trying to convert a list of data fra

[R] Convert List of Data.Frames to Data.Frame when List has NULL

2011-08-31 Thread Mark Ebbert
Dear R gurus, I trying to convert a list of data frames to one data frame, but one of the values within the list is NULL, so I get the error "arguments imply differing number of rows." Do you know of a quick way to tell R to combine all that are not null? Here is a simple example: > tmp<-list(

Re: [R] source() or OS X Lion?

2011-08-04 Thread Mark Ebbert
or with OS X Lion. > > cheers, > > Rolf Turner > > P. S. Apropos of nothing (but speaking of lions) everyone should read > ``The Lion of Boaz-Jachin and Jachin-Boaz'' by Russell Hoban. :-) > > R. T. > > On 05/08/11 09:24,

[R] source() or OS X Lion?

2011-08-04 Thread Mark Ebbert
Dear R Gurus, I'm seeing some strange behavior that I can't explain. I'm generating a figure for a paper and I like to save the script (no matter how simple) for future reference. My practice is to write the script and run it using the 'source()' function. What's weird is that the resultant fig

Re: [R] panel.loess confidence interval

2011-06-14 Thread Mark Ebbert
I finally got back around to working on this again. panel.smoother worked perfectly. Thank you both for the tips. On Jun 5, 2011, at 5:40 PM, Felix Andrews wrote: > On 6 June 2011 06:45, Gabor Grothendieck wrote: >> On Sun, Jun 5, 2011 at 3:18 PM, Mark Ebbert wrote: >>

[R] panel.loess confidence interval

2011-06-05 Thread Mark Ebbert
Dear R gurus, Based on my searches I think I know the answer to this question, but I'd like to pose it to you. Is there an easy way to plot the confidence interval around a loess line using lattice? The only thing I've found is ggplot, but I prefer to stick with lattice out of preference. Than

Re: [R] 'apply' with additional class variable

2011-05-21 Thread Mark Ebbert
t to match the > different car makes. > > Cheers, > > Josh > > > On Sat, May 21, 2011 at 11:23 AM, Mark Ebbert > wrote: >> Dear R gurus, >> >> I'm trying to solve what I assume is a fairly simple problem, but I'm having >> trouble fi

[R] 'apply' with additional class variable

2011-05-21 Thread Mark Ebbert
Dear R gurus, I'm trying to solve what I assume is a fairly simple problem, but I'm having trouble finding the proper approach. I have a matrix where each column is some object (e.g. a car) and each row is a numeric measurement of a feature of said object (e.g. horse power, top speed, etc.). Le

Re: [R] Class noquote to matrix

2011-03-30 Thread Mark Ebbert
I knew there had to be a simple solution. Thank you! On Mar 30, 2011, at 3:04 AM, Peter Ehlers wrote: > On 2011-03-29 19:12, Mark Ebbert wrote: >> Hi, >> >> I apologize if the solution is right in front of me, but I can't find >> anything on how to convert

[R] Class noquote to matrix

2011-03-29 Thread Mark Ebbert
Hi, I apologize if the solution is right in front of me, but I can't find anything on how to convert a class of 'noquote' to 'matrix'. I've tried as.matrix and I've tried coercing it by 'class(x)<-matrix', but of course that didn't work. I've been using the function 'symnum' which returns an ob

Re: [R] Font family not found in Windows font database

2010-12-01 Thread Mark Ebbert
That did it. Thanks! On Dec 1, 2010, at 12:38 PM, Paul Murrell wrote: > Hi > > On 2/12/2010 4:55 a.m., Mark Ebbert wrote: >> Dear R Gurus, >> >> I have a fairly simple problem, but I haven't been able to find the >> answer on 'the google' or in t

[R] Font family not found in Windows font database

2010-12-01 Thread Mark Ebbert
Dear R Gurus, I have a fairly simple problem, but I haven't been able to find the answer on 'the google' or in the r-help archives. I am generating plots on both Windows and OS X where I need to guarantee that the font used is Arial. In my plot command I specify 'fontfamily="Arial"'. The probl

Re: [R] aggregate, by, *apply

2010-09-16 Thread Mark Ebbert
gt; 2 & m < y) > } > > Now generate tmp just as you have. then: > > require(plyr) > res <- daply(tmp, .(z), summarise, res=func(x,y)) > > I believe this does the trick > > Abhijit > On 9/15/10 5:45 PM, Mark Ebbert wrote: >> Dear R gurus, >&

[R] aggregate, by, *apply

2010-09-15 Thread Mark Ebbert
Dear R gurus, I regularly come across a situation where I would like to apply a function to a subset of data in a dataframe, but I have not found an R function to facilitate exactly what I need. More specifically, I'd like my function to have a context of where the data it's analyzing came from

Re: [R] Lattice Panel Print Order

2010-07-21 Thread Mark Ebbert
For pete's sake! That's just embarrassing. I don't know how I missed that. Thanks for your help Deepayan. I would also like to say thank you for supporting Lattice so well. On Jul 21, 2010, at 2:39 AM, Deepayan Sarkar wrote: > On Wed, Jul 21, 2010 at 12:13 AM, Mark Ebber

[R] Lattice Panel Print Order

2010-07-21 Thread Mark Ebbert
Hi, I have done a bit of searching and have not found a good answer for my question. Although I have not difficulty ordering the panels, Lattice prints them from bottom to top and left to right for each page. Is it possible to make it print from top to bottom for each page? I've tinkered with

[R] vi readline key bindings -- some work, some don't

2010-06-30 Thread Mark Ebbert
Dear R Gurus, I have spent some time in the R mail archive and only found one thread that mentions key binding (http://tolstoy.newcastle.edu.au/R/help/06/03/22481.html). I use R (2.9.2) from the command line using OS X's (10.6.4) Terminal.app. I have spent a fair amount of time trying to unders

Re: [R] tapply help

2010-06-05 Thread Mark Ebbert
lass]] >= lows[.class]) & > + (x.split[[.class]] <= highs[.class])) / > length(x.split[[.class]]) * 100 > + }) >> percentage > abcde > 50.0 45.0 62.5 54.54545 55.6 >> > > > On Fri, Jun 4, 2

[R] tapply help

2010-06-04 Thread Mark Ebbert
Dear R gurus, I am trying perform what I believe will be a pretty simple task, but I'm struggling to figure out how to do it. I have two vectors of the same length, the first is numeric and the second is factor. I understand that tapply is perfect for applying a function to the numeric vector b