Skip to content

Commit

Permalink
add a density function for bootdist* objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dutangc committed Jun 12, 2024
1 parent 7a4ae60 commit 9b0b646
Show file tree
Hide file tree
Showing 9 changed files with 480 additions and 181 deletions.
14 changes: 12 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import(stats)
importFrom("survival", Surv, survfit)
importFrom("MASS", kde2d)
importFrom("grDevices", colorRampPalette, terrain.colors)
importFrom("graphics", abline, axis, hist, hist.default, legend, lines, par, plot, points, polygon, contour, layout, matlines, segments, stripchart, image, pairs, rect, text)
importFrom("utils", head, stack, modifyList, tail)
importFrom("graphics", abline, axis, hist, hist.default,
legend, lines, par, plot, points, polygon,
contour, layout, matlines, segments, stripchart,
image, pairs, rect, text)
importFrom("utils", head, stack, modifyList, tail, str)
importFrom("methods", formalArgs)
importFrom("rlang", .data)

Expand Down Expand Up @@ -44,18 +47,25 @@ export(Surv2fitdistcens)
#bootdist class
export(bootdist)
export(CIcdfplot)
S3method(density, bootdist)
S3method(summary, bootdist)
S3method(plot, bootdist)
S3method(plot, density.bootdist)
S3method(print, bootdist)
S3method(print, density.bootdist)
S3method(print, summary.bootdist)
S3method(print, quantile.bootdist)
S3method(quantile, bootdist)


#bootdistcens class
export(bootdistcens)
S3method(density, bootdistcens)
S3method(summary, bootdistcens)
S3method(plot, bootdistcens)
S3method(plot, density.bootdistcens)
S3method(print, bootdistcens)
S3method(print, density.bootdistcens)
S3method(print, summary.bootdistcens)
S3method(print, quantile.bootdistcens)
S3method(quantile, bootdistcens)
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NEW FEATURES
- add calculation of the hessian using `optimHess` within `fitdist` when it is not given by `optim`.
- compute the asymptotic covariance matrix with MME.
- graphics function `*comp()` now return a list of drawn points and/or lines when `plotstyle == "graphics"`.
- add a `density` function for `bootdist(cens)` objects.

BUG FIXES

Expand Down
Loading

0 comments on commit 9b0b646

Please sign in to comment.