[R] data fitting

kjetil@entelnet.bo kjetil at entelnet.bo
Fri Dec 5 22:23:03 CET 2003


On 5 Dec 2003 at 8:40, Junwen wang wrote:

Your question could have been clearer, but:

Did you consider qqnorm/qqplot?

extreme value distributions are in the evd package on CRAN. 

if your data are in the vector bar, try:

qqnorm(bar)
qqline(bar, col="red")

then (after download/innstall) 

library(evd)
n <- length(bar)
qqplot( qgumbel(ppoints(n), sort(bar) )
# maybe estimate parameters first?

(By the way, if n is not to low, even a histogram should tell you if 
this might be normal or extrem value --- what modelling situation 
makes you doubt?)

Kjetil Halvorsen

> Hi,
> I got a data set and want to find if the bin bar is normal
> distribution or extreme value distribution. Is there any function to
> do the fitting?
> 
> Thanks
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list