Skip to content

Commit

Permalink
error in the precedent commit (file not saved)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie-Laure DELIGNETTE-MULLER committed Oct 14, 2024
1 parent 20c6814 commit 3086429
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions share/fig4logo.r
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require(fitdistrplus)

## first example
data(salinity)
log10LC50 <-log10(salinity)
fitn <- fitdistcens(log10LC50, "norm")
Expand All @@ -20,20 +22,35 @@ cdfcompcens(list(fitln, fitw, fitg), main = "",
xlogscale = TRUE)


## another example
## second example
data(groundbeef)
x1 <- groundbeef$serving[1:50]
f1 <- fitdist(x1, "gamma")
b1 <- bootdist(f1, niter=51)
print(b1)
plot(b1)
plot(b1, enhance=TRUE)
summary(b1)
quantile(b1)
# print(b1)
# plot(b1)
# plot(b1, enhance=TRUE)
# summary(b1)
# quantile(b1)
par(bg = "black")
CIcdfplot(b1, CI.output = "quantile", xlim = c(10, 140),
CI.col = "red",fitlwd = 2, datacol = "yellow", CI.fill = "orange")

CIcdfplot(b1, CI.output = "quantile", xlim = c(10, 140),
CI.col = "darkblue",fitlwd = 2, datacol = "snow",
fitcol = "darkblue", CI.fill = "lightblue")
CI.col = "blue",fitlwd = 2, datacol = "snow",
fitcol = "blue", CI.fill = "lightblue")


data(groundbeef)
x1 <- groundbeef$serving[1:30]
f1 <- fitdist(x1, "gamma")
b1 <- bootdist(f1, niter=51)
# print(b1)
# plot(b1)
# plot(b1, enhance=TRUE)
# summary(b1)
# quantile(b1)
par(bg = "black")
CIcdfplot(b1, CI.output = "quantile", xlim = c(-10, 140),
CI.col = "red",fitlwd = 2, datacol = "yellow", CI.fill = "orange")

0 comments on commit 3086429

Please sign in to comment.