Re: [R] survfit number of variables != number of variable names

2012-11-19 Thread Georges Dupret
Hi! It seems the data file wasn't transmit. Please find a copy in attachment. Best, ge On 11/19/2012 09:02 AM, Terry Therneau-2 [via R] wrote: I can't reproduce the problem. Tell us what version of R and what version of the survival package. Create a reproducable example. I don't know if

Re: [R] How to subset my data and at the same time keep the balance?

2012-11-19 Thread Brian Feeny
Just curious, once you have a model that works well, does it make sense to then tune it against 100% of the dataset (with known outcomes) so you can apply it to data you wish to predict for or is that a bad approach? I have done like is explained in this thread many times, taken a sample,

Re: [R] github

2012-11-19 Thread Steve Lianoglou
Why don't you try clicking on the Help link at the top of their site? You can even google github for dummies to great success as well ... -steve On Mon, Nov 19, 2012 at 6:07 PM, Muhuri, Pradip (SAMHSA/CBHSQ) pradip.muh...@samhsa.hhs.gov wrote: Hello, I would like to learn how to set up

Re: [R] help on matrix column removal based on another matrix results

2012-11-19 Thread Irucka Embry
Hi Rui, how are you? I want to thank you for your assistance again. I'm sorry, but the code that you provided for me did not work this time. The code and the warning message are both below: NSErr - t(matrix(NSEr)) # which is a 1x1000 double matrix Vsim[] - Vsim[ , NSErr 0.6] Warning

[R] Help with loess

2012-11-19 Thread eric
Not sure what I'm doing wrong. Can't seem to get loess values. It looks like loess is returning the same values as the input. j -loess(x1$total~as.numeric(index(x1) plot(x1$total,type='l', ylab='M coms/y global',xlab='') lines(loess(total~as.numeric(index(x1)),x1)) The plot statement works fine

Re: [R] how to get bootstrap estimates

2012-11-19 Thread eric
You might want to check out the bootstrap package. Also consider clarifying what you want to bootstrap ...mec or vec or what Lastly, it is not clear what you mean when you say ... and I have the next errors: ro 12 = ro (mec,vec) ro 34 = ro (alg,ana) ro 35 = ro (alg,sta) ro 45 = ro

Re: [R] Help with loess

2012-11-19 Thread Pascal Oettli
Hello, Your problem is not reproducible. Regards, Pascal Le 20/11/2012 12:20, eric a écrit : Not sure what I'm doing wrong. Can't seem to get loess values. It looks like loess is returning the same values as the input. j -loess(x1$total~as.numeric(index(x1) plot(x1$total,type='l', ylab='M

Re: [R] Help with loess

2012-11-19 Thread Don McKenzie
In your case j$y are the original Y values (response), not the fitted values. Try plot(j$x,fitted(j)) On 19-Nov-12, at 7:20 PM, eric wrote: Not sure what I'm doing wrong. Can't seem to get loess values. It looks like loess is returning the same values as the input. j

Re: [R] method show

2012-11-19 Thread Martin Morgan
On 11/19/2012 04:21 PM, Andrea Spano wrote: Hello the list, As a simple example: rm(list = ls()) setClass(tre, representation(x=numeric)) setMethod(show, tre, def = function(object) cat(object@x))[1] show setMethod(summary, tre, def = function(object) cat(This is a tre of value , object@x,

Re: [R] Closest fit data to a particular formula

2012-11-19 Thread Jeff Newmiller
Try using the lm function: ?lm --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...

Re: [R] How to subset my data and at the same time keep the balance?

2012-11-19 Thread Jeff Newmiller
No. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#..

Re: [R] manipulating longitudinal data in r

2012-11-19 Thread Remko Duursma
You can use ave(), like this: ke$maxa - ave(ke$a, as.factor(ke$patid), FUN=max) greetings, remko -- View this message in context: http://r.789695.n4.nabble.com/manipulating-longitudinal-data-in-r-tp4649855p4650138.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Closest fit data to a particular formula

2012-11-19 Thread Bert Gunter
But ... On Mon, Nov 19, 2012 at 9:23 PM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: Try using the lm function: ... Better yet, post to a statistics list, like stats.stackexchange.com, as the questions appear primarily statistical, and not R related. Incidentally, loess() is specifically

<    1   2