Re: [R] cdf in R give probability of random variable

2016-10-21 Thread peter dalgaard
> On 21 Oct 2016, at 20:23 , peter dalgaard wrote: > > In both cases it works out nicer if you do > > names(px) <- x > barplot(px) > Um, unless of course you want the cdf as a step function, in which case check the help page for plot for possible values of the type= argument. -- Peter Dalg

Re: [R] cdf in R give probability of random variable

2016-10-21 Thread peter dalgaard
This looks like homework, but doing it in R might not be, so I'll give you the benefit of doubt... > On 21 Oct 2016, at 18:30 , Ragia . wrote: > > > Dear Grooup > > kindly > > how can I plot these graphs in R.. > > > Suppose that X is a discrete random variable with P(X = 0) = .25, P(X

[R] cdf in R give probability of random variable

2016-10-21 Thread Ragia .
Dear Grooup kindly how can I plot these graphs in R.. Suppose that X is a discrete random variable with P(X = 0) = .25, P(X = 1) = .125, P(X = 2) = .125, and P(X = 3) = .5. Graph the frequency function and the cumulative distribution function of X. my solution was: x=c(0,1,3) px=c(.25,.1

Re: [R] need help in customising function in stat_summary function ggplot2

2016-10-21 Thread Indhira, Anusha
Thanks mark for pointing out my mistake and suggestion.I can get desired output now -Original Message- From: Mark Sharp [mailto:msh...@txbiomed.org] Sent: 20 October 2016 17:21 To: Indhira, Anusha Cc: r-help@r-project.org Subject: Re: [R] need help in customising function in stat_summary

Re: [R] nls.lm

2016-10-21 Thread ProfJCNash
Berend's point is well-taken. It's a lot of work to re-jig a code, especially one more than 30 years old. On the other hand, nlmrt is all-R, and it does more or less work on underdetermined systems as I illustrated in a small script. The changes needed to treat the problem as Mike suggests are

Re: [R] nls.lm

2016-10-21 Thread Berend Hasselman
> On 21 Oct 2016, at 06:00, Mike meyer <1101...@gmx.net> wrote: > > Let's take a different view of the problem. > Given f=(f_1,...,f_m):R^n -> R^m we want to minimize ||f(x)||. > > What distinguishes this from a general minimization problem is that you know > the structure of the > objective fu

Re: [R] Reg : : How to plot the live streaming graph in R ?

2016-10-21 Thread Ulrik Stervbo
Hi Manu, I'm by far no expert, but if you use Shiny I believe you can refresh using 'reactiveTimer' and just plot the last n points HTH Ulrik On Fri, 21 Oct 2016 at 08:53 Manohar Reddy wrote: > Hi, > > > > I have a data which is stored in sql table and in every minute data > inserting to thi