Displaying 2 results from an estimated 2 matches for "lognorm1".
Did you mean:
lognorm
2007 Nov 14
2
Generating log transformed random numbers
Dear R users,
My question is that how it is possible to generate some random numbers using rnorm( ) function but in log transformed values.
Thank you,
Tobias
---------------------------------
[[alternative HTML version deleted]]
2014 Oct 15
2
Test K-S con distribuciones LogNormales
...ión típica de la dist. normal
>> nbucket <- 10 # numero de buckets
>>
>> # Generamos 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,...