Skip to content

Commit 3086429

Browse files
author
Marie-Laure DELIGNETTE-MULLER
committed
error in the precedent commit (file not saved)
1 parent 20c6814 commit 3086429

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

share/fig4logo.r

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
require(fitdistrplus)
2+
3+
## first example
24
data(salinity)
35
log10LC50 <-log10(salinity)
46
fitn <- fitdistcens(log10LC50, "norm")
@@ -20,20 +22,35 @@ cdfcompcens(list(fitln, fitw, fitg), main = "",
2022
xlogscale = TRUE)
2123

2224

23-
## another example
25+
## second example
2426
data(groundbeef)
2527
x1 <- groundbeef$serving[1:50]
2628
f1 <- fitdist(x1, "gamma")
2729
b1 <- bootdist(f1, niter=51)
28-
print(b1)
29-
plot(b1)
30-
plot(b1, enhance=TRUE)
31-
summary(b1)
32-
quantile(b1)
30+
# print(b1)
31+
# plot(b1)
32+
# plot(b1, enhance=TRUE)
33+
# summary(b1)
34+
# quantile(b1)
3335
par(bg = "black")
3436
CIcdfplot(b1, CI.output = "quantile", xlim = c(10, 140),
3537
CI.col = "red",fitlwd = 2, datacol = "yellow", CI.fill = "orange")
3638

3739
CIcdfplot(b1, CI.output = "quantile", xlim = c(10, 140),
38-
CI.col = "darkblue",fitlwd = 2, datacol = "snow",
39-
fitcol = "darkblue", CI.fill = "lightblue")
40+
CI.col = "blue",fitlwd = 2, datacol = "snow",
41+
fitcol = "blue", CI.fill = "lightblue")
42+
43+
44+
data(groundbeef)
45+
x1 <- groundbeef$serving[1:30]
46+
f1 <- fitdist(x1, "gamma")
47+
b1 <- bootdist(f1, niter=51)
48+
# print(b1)
49+
# plot(b1)
50+
# plot(b1, enhance=TRUE)
51+
# summary(b1)
52+
# quantile(b1)
53+
par(bg = "black")
54+
CIcdfplot(b1, CI.output = "quantile", xlim = c(-10, 140),
55+
CI.col = "red",fitlwd = 2, datacol = "yellow", CI.fill = "orange")
56+

0 commit comments

Comments
 (0)