1
1
require(fitdistrplus )
2
+
3
+ # # first example
2
4
data(salinity )
3
5
log10LC50 <- log10(salinity )
4
6
fitn <- fitdistcens(log10LC50 , " norm" )
@@ -20,20 +22,35 @@ cdfcompcens(list(fitln, fitw, fitg), main = "",
20
22
xlogscale = TRUE )
21
23
22
24
23
- # # another example
25
+ # # second example
24
26
data(groundbeef )
25
27
x1 <- groundbeef $ serving [1 : 50 ]
26
28
f1 <- fitdist(x1 , " gamma" )
27
29
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)
33
35
par(bg = " black" )
34
36
CIcdfplot(b1 , CI.output = " quantile" , xlim = c(10 , 140 ),
35
37
CI.col = " red" ,fitlwd = 2 , datacol = " yellow" , CI.fill = " orange" )
36
38
37
39
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