Re: [R] ecdf --- title suggestion and question

2013-05-08 Thread ivo welch
ooops...never mind. I mixed up "title" and "main" as options. Ivo Welch (ivo.we...@gmail.com) On Wed, May 8, 2013 at 1:54 PM, Steve Lianoglou wrote: > Hi Ivo, > > On Wed, May 8, 2013 at 1:37 PM, ivo welch wrote: >> dear R-experts---first, a suggestion to martin: the ecdf() function >> cou

Re: [R] ecdf --- title suggestion and question

2013-05-08 Thread Steve Lianoglou
Hi Ivo, On Wed, May 8, 2013 at 1:37 PM, ivo welch wrote: > dear R-experts---first, a suggestion to martin: the ecdf() function > could have an optional parameter to set the title. by looking at > str(), I see the plot title is set in an attr named "call". i.e., I > can reset it as > > ee <- ecd

[R] ecdf --- title suggestion and question

2013-05-08 Thread ivo welch
dear R-experts---first, a suggestion to martin: the ecdf() function could have an optional parameter to set the title. by looking at str(), I see the plot title is set in an attr named "call". i.e., I can reset it as ee <- ecdf( rnorm(25 ) ) attr(ee,"call") <- "my own title" plot(ee) alas, I ca

Re: [R] ecdf

2011-10-17 Thread gj
Hi Sarah, Thanks for your very lucid explanations. Thanks also to David and Dennis. I got it completely. I now have some nice ggplot of a couple ecdf in my paper :-) Now on to do some matrix plots of correlation matrices and some lm(). I'm like a child in a candy shop. :-) I'm learning something

Re: [R] ecdf

2011-10-16 Thread Dennis Murphy
Thanks for the clarification. I stand corrected. Dennis On Sun, Oct 16, 2011 at 5:48 PM, gj wrote: > David is right. I am looking for the ecfd for fs$numstudents. The > other column is just an id. > > I guess I don't know how to read the R documentation when it comes to > functions. > > looking

Re: [R] ecdf

2011-10-16 Thread Sarah Goslee
Hi, On Sun, Oct 16, 2011 at 8:48 PM, gj wrote: > David is right. I am looking for the ecfd for fs$numstudents. The > other column is just an id. > > I guess I don't know how to read the R documentation when it comes to > functions. > > looking at the documentation, i now notice that it says "Com

Re: [R] ecdf

2011-10-16 Thread gj
David is right. I am looking for the ecfd for fs$numstudents. The other column is just an id. I guess I don't know how to read the R documentation when it comes to functions. looking at the documentation, i now notice that it says "Compute an empirical cummulative distribution function and not a

Re: [R] ecdf

2011-10-16 Thread David Winsemius
On Oct 16, 2011, at 3:53 PM, Dennis Murphy wrote: Hi: I don't understand what you're attempting to do. Wouldn't courseid be a categorical variable with a numeric label? If that is so, why are you trying to compute an EDF? An EDF computes cumulative relative frequency of a random variable, whic

Re: [R] ecdf

2011-10-16 Thread Dennis Murphy
Hi: I don't understand what you're attempting to do. Wouldn't courseid be a categorical variable with a numeric label? If that is so, why are you trying to compute an EDF? An EDF computes cumulative relative frequency of a random variable, which by definition is numeric. If we were talking about E

Re: [R] ecdf

2011-10-16 Thread David Winsemius
On Oct 16, 2011, at 11:31 AM, gj wrote: Hi, Newbie here. I read the R for Beginners but i still don't get this. I have the following data (this is just an example) in a CSV file: courseid numstudents 101 209 141 13 246 140 263

[R] ecdf

2011-10-16 Thread gj
Hi, Newbie here. I read the R for Beginners but i still don't get this. I have the following data (this is just an example) in a CSV file: courseid numstudents 101 209 141 13 246 140 263 8 321 10 361

Re: [R] ecdf() to nls() - how to transform data?

2011-07-18 Thread Jochen1980
Ok, I think I had a good idea to solve my problem and need someone who second me on that or tell me what a fool I am :-) . My problem: I went for curve-fitting with nls() and took knot()-ecdf() for collecting data for nls-basis-dataframe. I came into trouble, because my x-y-data of the data.frame(

Re: [R] ecdf() to nls() - how to transform data?

2011-07-17 Thread David Winsemius
On Jul 17, 2011, at 8:13 PM, Jochen1980 wrote: Hi David, my first attempt to work through your code was successful, my predicted line is pretty close to the ecdf-function. I have no idea why you inverted the gumbel-function and what the advantage of this strategy is? I was advised by a

Re: [R] ecdf() to nls() - how to transform data?

2011-07-17 Thread Jochen1980
Hi David, my first attempt to work through your code was successful, my predicted line is pretty close to the ecdf-function. I have no idea why you inverted the gumbel-function and what the advantage of this strategy is? I interpret your (1:100/100)-trick like this: you build a sequence of 100 Ti

Re: [R] ecdf() to nls() - how to transform data?

2011-07-17 Thread David Winsemius
On Jul 17, 2011, at 11:07 AM, David Winsemius wrote: On Jul 17, 2011, at 4:12 AM, Jochen1980 wrote: Thanks David and Peter! I tried to improve my R-script to get closer to my goal. I guess I have to use nls(), because later I want to work with Levenberg-Marquardt-Algorithm and when I got it

Re: [R] ecdf() to nls() - how to transform data?

2011-07-17 Thread David Winsemius
On Jul 17, 2011, at 4:12 AM, Jochen1980 wrote: Thanks David and Peter! I tried to improve my R-script to get closer to my goal. I guess I have to use nls(), because later I want to work with Levenberg-Marquardt-Algorithm and when I got it right, LM-Algorithm uses least squares as well, fitdi

Re: [R] ecdf() to nls() - how to transform data?

2011-07-17 Thread Jochen1980
Thanks David and Peter! I tried to improve my R-script to get closer to my goal. I guess I have to use nls(), because later I want to work with Levenberg-Marquardt-Algorithm and when I got it right, LM-Algorithm uses least squares as well, fitdistr() instead uses Maximum Likelihoods. Anyway, I am

Re: [R] ecdf() to nls() - how to transform data?

2011-07-16 Thread peter dalgaard
On Jul 16, 2011, at 14:17 , Jochen1980 wrote: > Hi, > > I am using ecdf-function and want to use the ecdf()-data-points for nls() as > data-parameter. > nls() expects 'list' or 'environment' as a data-type, knots(ecdf(mydata)) > gives me 'numeric'. > What should I do now? Consider using fitdist

Re: [R] ecdf() to nls() - how to transform data?

2011-07-16 Thread David Winsemius
On Jul 16, 2011, at 8:17 AM, Jochen1980 wrote: Hi, I am using ecdf-function and want to use the ecdf()-data-points for nls() as data-parameter. nls() expects 'list' or 'environment' as a data-type, knots(ecdf(mydata)) gives me 'numeric'. If you put them into 'df' with appropriate name

[R] ecdf() to nls() - how to transform data?

2011-07-16 Thread Jochen1980
Hi, I am using ecdf-function and want to use the ecdf()-data-points for nls() as data-parameter. nls() expects 'list' or 'environment' as a data-type, knots(ecdf(mydata)) gives me 'numeric'. What should I do now? Thanks in advance - Jochen Here is the code: ##

Re: [R] ecdf

2010-04-21 Thread Martin Maechler
> "DW" == David Winsemius > on Mon, 19 Apr 2010 10:49:51 -0400 writes: DW> The OP wrote me privately to say that the errant documantation was at: >> http://lib.stat.cmu.edu/S/Harrell/help/Hmisc/html/ecdf.html DW> That is a rather old bit of information. It dates back to

Re: [R] ecdf

2010-04-19 Thread David Winsemius
ck Cc: ONKELINX, Thierry; R help Subject: Re: [R] ecdf On Apr 19, 2010, at 9:12 AM, Downey, Patrick wrote: Hi Thierry, That worked perfectly. Thanks for the suggestion. For reference, in the documentation, it What is "it"? never lists {Hmisc}'s function as starting with E i

Re: [R] ecdf

2010-04-19 Thread David Winsemius
should probably be corrected. Thanks again. -Mitch -Original Message- From: ONKELINX, Thierry [mailto:thierry.onkel...@inbo.be] Sent: Monday, April 19, 2010 9:08 AM To: Downey, Patrick; R help Subject: RE: [R] ecdf R is case sensitive. ecdf() is in the stats package, Ecdf() is in Hmisc.

Re: [R] ecdf

2010-04-19 Thread Downey, Patrick
-Original Message- From: ONKELINX, Thierry [mailto:thierry.onkel...@inbo.be] Sent: Monday, April 19, 2010 9:08 AM To: Downey, Patrick; R help Subject: RE: [R] ecdf R is case sensitive. ecdf() is in the stats package, Ecdf() is in Hmisc. So you want Ecdf(x,what=

Re: [R] ecdf

2010-04-19 Thread ONKELINX, Thierry
acted from a given body of data. ~ John Tukey > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] Namens Downey, Patrick > Verzonden: maandag 19 april 2010 15:04 > Aan: R help > Onderwerp: [R] ecdf > > Hello, >

[R] ecdf

2010-04-19 Thread Downey, Patrick
Hello, I'd like to plot an empirical cumulative distribution function, except instead of the fraction of values < x, I'd like the fraction of values > x. I think this can be done using the ecdf function in {Hmisc}. I installed the package and loaded it. However, when following the example given

Re: [R] ecdf error

2010-02-05 Thread Frank E Harrell Jr
El-Tahtawy, Ahmed wrote: Dear friends, Ecdf used to work nicely before. e.g. ecdf(df1v[,c(1:6)],group=df1v$trt,q=.5,col=1:2,label.curves=list(keys="l ines"), datadensity="rug") but now it does not work at all, even for a simpler code??? By the way, I used the same libraries.

[R] ecdf error

2010-02-05 Thread El-Tahtawy, Ahmed
Dear friends, Ecdf used to work nicely before. e.g. ecdf(df1v[,c(1:6)],group=df1v$trt,q=.5,col=1:2,label.curves=list(keys="l ines"), datadensity="rug") but now it does not work at all, even for a simpler code??? By the way, I used the same libraries. Thanks for your help. Ahmed

Re: [R] ecdf manipulation

2008-08-16 Thread Martin Maechler
> <[EMAIL PROTECTED]> > on Fri, 15 Aug 2008 00:51:56 +0100 writes: > I’m using the edcf function to look at a number of > empirical distributions graphically for run-time analyses > of stochastic optimization algorithms. When dealing with > problems where the optimal

[R] ecdf manipulation

2008-08-14 Thread harryandlaura
I’m using the edcf function to look at a number of empirical distributions graphically for run-time analyses of stochastic optimization algorithms. When dealing with problems where the optimal solution for these problems is always found everything is fine and the graphs are very useful for comparat