Skip to content

Commit 5462a23

Browse files
committed
Preparing to release version 0.2.2
1 parent fc3e425 commit 5462a23

20 files changed

+26
-41
lines changed

DESCRIPTION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: bayesboot
22
Type: Package
33
Title: An Implementation of Rubin's (1981) Bayesian Bootstrap
4-
Version: 0.2.1
5-
Date: 2016-03-31
4+
Version: 0.2.2
5+
Date: 2018-06-28
66
Authors@R: person("Rasmus", "Bååth", email = "rasmus.baath@gmail.com", role = c("aut", "cre"))
77
Description: Functions for performing the Bayesian bootstrap as introduced by
88
Rubin (1981) <doi:10.1214/aos/1176345338> and for summarizing the result.
@@ -13,13 +13,13 @@ License: MIT + file LICENSE
1313
LazyData: TRUE
1414
URL: https://github.com/rasmusab/bayesboot
1515
BugReports: https://github.com/rasmusab/bayesboot/issues
16-
RoxygenNote: 5.0.1
16+
RoxygenNote: 6.0.1
1717
Imports: plyr (>= 1.8.3),
1818
HDInterval(>= 0.1.1)
1919
Depends: R (>= 3.2.0)
2020
Suggests:
2121
testthat,
22+
foreach,
2223
doParallel,
2324
boot
2425
Encoding: UTF-8
25-

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
bayesboot 0.2.2
2+
===================
3+
4+
* Fixed issue with unstated dependencies in the tests.
5+
16
bayesboot 0.2.1
27
=======================
38

R/plotPost.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#' plotting side-effect.
4141
#'
4242
#' @note The origin of this function is
43-
#' \href{http://cran.r-project.org/package=BEST}{the BEST
43+
#' \href{https://cran.r-project.org/package=BEST}{the BEST
4444
#' package} which is based on Kruschke(2015, 2013).
4545
#'
4646
#' @author John Kruschke, modified by Mike Meredith

README-files/README-car_plot-1.png

-50.5 KB
Binary file not shown.
-10.3 KB
Binary file not shown.
-10.8 KB
Binary file not shown.

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ output:
88
knitr::opts_chunk$set(
99
collapse = TRUE,
1010
comment = "##",
11-
fig.path = "README-files/README-"
11+
fig.path = "man/figures/README-"
1212
)
1313
set.seed(123)
1414
```

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ summary(b1)
3131
## Number of posterior draws: 4000
3232
##
3333
## Summary of the posterior (with 95% Highest Density Intervals):
34-
## statistic mean sd hdi.low hdi.high
35-
## V1 184.5 1.154 182.3 186.9
34+
## statistic mean sd hdi.low hdi.high
35+
## V1 184.4979 1.154456 182.3328 186.909
3636
##
3737
## Quantiles:
38-
## statistic q2.5% q25% median q75% q97.5%
39-
## V1 182.3 183.7 184.5 185.2 186.9
38+
## statistic q2.5% q25% median q75% q97.5%
39+
## V1 182.2621 183.742 184.4664 185.2378 186.8737
4040
##
4141
## Call:
4242
## bayesboot(data = heights, statistic = mean)
4343
plot(b1)
4444
```
4545

46-
![](README-files/README-president_summary-1.png)
46+
![](man/figures/README-president_summary-1.png)
4747

4848
While it is possible to use a summary statistic that works on a resample of the original data, it is more efficient if it's possible to use a summary statistic that works on a *reweighting* of the original dataset. Instead of using `mean` above it would be better to use `weighted.mean` like this:
4949

@@ -58,7 +58,7 @@ The result of a call to `bayesboot` will always result in a `data.frame` with on
5858
# heights of American presidents is above the mean heights of
5959
# American males as given by www.cdc.gov/nchs/data/series/sr_11/sr11_252.pdf
6060
mean(c(b2[,1] > 175.9, TRUE, FALSE))
61-
## [1] 0.9998
61+
## [1] 0.9997501
6262
```
6363

6464
### Comparing two groups
@@ -80,7 +80,7 @@ b_diff <- as.bayesboot(b_presidents - b_opponents)
8080
plot(b_diff)
8181
```
8282

83-
![](README-files/README-height_comparison-1.png)
83+
![](man/figures/README-height_comparison-1.png)
8484

8585
So there is some evidence that loosing opponents could be shorter. (Though, I must add that it is quite unclear what the purpose really is with analyzing the heights of presidents and opponents...)
8686

@@ -113,7 +113,7 @@ lines(cars$speed, colMeans(bb_loess, na.rm = TRUE), type ="l",
113113
col = "tomato", lwd = 4)
114114
```
115115

116-
![](README-files/README-car_plot-1.png)<!-- -->
116+
![](man/figures/README-car_plot-1.png)
117117

118118
More information
119119
----------------

cran-comments.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
## Resubmission
2-
This is a resubmission. In this version I have:
3-
4-
* Fixed an invalid URL in README.md by removing parentheses that had been added by mistake.
5-
61
## Test environments
7-
* local Ubuntu 32-bit 12.04 , R 3.2.4
2+
* local MacOS 10.12.6, R 3.4.2
83
* win-builder (devel and release)
94

105
## R CMD check results
@@ -13,18 +8,10 @@ There were no ERRORs or WARNINGs.
138
There was 1 NOTE:
149

1510
```
16-
checking CRAN incoming feasibility ... NOTE
17-
Maintainer: ‘Rasmus Bååth <rasmus.baath@gmail.com>’
18-
New submission
19-
20-
License components with restrictions and base license permitting such:
21-
MIT + file LICENSE
22-
File 'LICENSE':
23-
YEAR: 2016
24-
COPYRIGHT HOLDER: Rasmus Bååth
11+
* checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
12+
Maintainer: 'Rasmus Bååh <rasmus.baath@gmail.com>'
2513
```
2614

27-
2815
## Downstream dependencies
2916

3017
This package currently has no downstream dependencies

man/as.bayesboot.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)