scale
and location
, respectively.dgumbel(x,scale=1,location=0,log=FALSE)
pgumbel(q,scale=1,location=0,lower.tail=TRUE,log.p=FALSE)
qgumbel(p,scale=1,location=0,lower.tail=TRUE,log.p=FALSE)
rgumbel(n,scale=1,location=0)
dgumbel
gives the density, pgumbel
gives the distribution function, qgumbel
gives the quantile function, and rgumbel
generates random deviates.x <- rgumbel(1000,3,100)
hist(x,freq=FALSE,col='gray',border='white')
curve(dgumbel(x,3,100),add=TRUE,col='red4',lwd=2)
Run the code above in your browser using DataLab