search for: bucketizar

Displaying 1 result from an estimated 1 matches for "bucketizar".

Did you mean: bucketizada
2014 Oct 15
2
Test K-S con distribuciones LogNormales
...la muestra de tamaño n >> sample <- sort(rlnorm(n, meanlog = mean, sdlog = sd)) >> # Función de distribución >> df <- plnorm(sample, meanlog = mean, sdlog = sd) >> lognorm1 <- data.frame(sample=sample, distfun=df) >> # Gráfica de la función de distribución sin bucketizar >> plot(lognorm1, type = "l", col = "red") >> >> # Bucketización - Muestra bucketizada >> library(plyr) >> dt <- data.frame(sample=sample, bucket=rep(1:nbucket, each = n/nbucket)) >> sample_bucket <- ddply(dt,~bucket,summarise,mean=mean(...