[R] Add a density line to a cumulative histogram - second try

2011-07-14 Thread Jochen1980
Hi list, this is my second try for first post on this list (I tried to post via email and nothing appeared in my email-inbox, so now I try to use the nabble-web-interface) - I hope that you will only have to read one post in your inbox! Okay, my question ... I was able to plot a histogram and add

Re: [R] Add a density line to a cumulative histogram - second try

2011-07-15 Thread Jochen1980
Thanks, I found the function ecdf() which does the job. plot( ecdf( nvtpoints), col="BLUE", lwd=1, add=TRUE ) -- View this message in context: http://r.789695.n4.nabble.com/Add-a-density-line-to-a-cumulative-histogram-second-try-tp3666969p3669310.html Sent from the R help mailing list archive a

[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() 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-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-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(

[R] Use ks.test() or an alternative in C/C++ application

2011-07-23 Thread Jochen1980
Hi, I am looking for an opportunity to make a KS-Test in my C/C++-app. Unfortunately I am not able to find a lib or function in C or C++ which does the job. For my other numerical stuff Gnu Scientific Library was recommended to me. What to do now? I read that there are options to call R in C++-C

[R] Problems with ks.test()

2011-07-29 Thread Jochen1980
Hi, I got two data point vectors. Now I want to make a ks.test(). I you print both vectors you will see, that they fit pretty fine. Here is a picture: http://www.jochen-bauer.net/downloads/kstest-r-help-list-plot.png As you can see there is one histogram and moreover there is the gumbel density

Re: [R] Problems with ks.test()

2011-07-30 Thread Jochen1980
Hi, I used a ks-function of another library (kstwo() of numerical recipes, a mathematics book) to test it for myself and the same happens there - I cannot understand why this observation happens? I hope someone can 'enlighten' me. -- View this message in context: http://r.789695.n4.nabble.com/Pro

[R] Kolmogorov-Smirnov-Test on binned data, I guess gumbel-distributed data

2011-11-02 Thread Jochen1980
Hi R-Users, I read some texts related to KS-tests. Most of those authors stated, that KS-Tests are not suitable for binned data, but some of them refer to 'other' authors who are claiming that KS-Tests are okay for binned data. I searched for sources and can't find examples which approve that it