mercredi 5 octobre 2016

Kolmogorov-Smirnov Tests for Laplace destribution R

Vote count: 0

I have a problem with ks function in R. I have a Laplace Distribution:

ldes <- function(y, a) {
  if(y < 0.5) 1/a*log(2*y, 2) 
  else  1/a*log(2*(1-y), 2)
}
a <- 1
set.seed(1)
y = runif(1000, 0, 1)
ld <- ldes(y, a)

So, I need to do the ks test, but can't find anything about second parameter that should be in there, like:

ks.test(my_lnorm, **plnorm**, mean = -5, sd = 5)

for Lognormal Destribution or:

ks.test(my_log, **plogis**, location = 2, scale = 3)

for Logistics Destribution

Thanks.

asked 24 secs ago

Let's block ads! (Why?)



Kolmogorov-Smirnov Tests for Laplace destribution R

Aucun commentaire:

Enregistrer un commentaire