Skip to content

Commit

Permalink
Update the 'descdist' help file
Browse files Browse the repository at this point in the history
  • Loading branch information
aursiber committed Jan 30, 2024
1 parent c741bb3 commit a7bc16b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions man/descdist.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -102,32 +102,34 @@ Marie-Laure Delignette-Muller and Christophe Dutang.
set.seed(1234)
x1 <- rnorm(100)
descdist(x1)
descdist(x1,boot=11)
descdist(x1,boot=51)
\donttest{
# (2) Description of a sample from a beta distribution
# with uncertainty on skewness and kurtosis estimated by bootstrap
# with changing of default colors and plotting character for observed point
#
descdist(rbeta(100,shape1=0.05,shape2=1),boot=11,
descdist(rbeta(100,shape1=0.05,shape2=1),boot=101,
obs.col="blue", obs.pch = 15, boot.col="darkgreen")
# (3) Description of a sample from a gamma distribution
# with uncertainty on skewness and kurtosis estimated by bootstrap
# without plotting
#
descdist(rgamma(100,shape=2,rate=1),boot=11,graph=FALSE)
descdist(rgamma(100,shape=2,rate=1),boot=101,graph=FALSE)
# (3) Description of a sample from a Poisson distribution
# with uncertainty on skewness and kurtosis estimated by bootstrap
#
descdist(rpois(100,lambda=2),discrete=TRUE,boot=11)
descdist(rpois(100,lambda=2),discrete=TRUE,boot=101)
# (4) Description of serving size data
# with uncertainty on skewness and kurtosis estimated by bootstrap
#
data(groundbeef)
serving <- groundbeef$serving
descdist(serving, boot=11)
descdist(serving, boot=101)
}
}
\keyword{ distribution }

0 comments on commit a7bc16b

Please sign in to comment.