[R] calculating probability

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Aug 24 14:54:31 CEST 2009



maram salem wrote:
> Hi all,
> I've a trivial question. If (q) is a continous variable,actually a vector of 1000 values. how to calculate the probability that q is greater than a specific value, i.e. P(q>45)??

Do you want to estimate any distribution or do you just want the 
empirical information on the number of values greater than 45? Foir the 
latter:

   mean(q > 45)

Uwe Ligges



> Thanks
> Maram
> 
> 
>       
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list