[R] Kolmogorow-Smirnow-Test to check if Data comes from Subbotin distribution

Sara Sievert sara.sievert at gmx.de
Sat Dec 13 16:20:28 CET 2008


Hi, 
I have a Data Set x and I want to check with a Kolmogorow-Smirnow-Test, if x comes from a Subbotin Distribution, whose density function is:

function(x,location,scale,tail) # Exponential power (=Subbotin)
{
  const<- 2*scale*tail^(1/tail) *gamma(1+1/tail)
  z<- (x-location)/scale
  exp(-1/tail*abs(z)^tail)/const
}

How can i do this? Thank you
--



More information about the R-help mailing list