Skip to content

Commit ee1b621

Browse files
authored
Merge pull request #140 from andrewpbray/develop
Develop -> master
2 parents c863cd9 + 9d36b70 commit ee1b621

File tree

251 files changed

+5684
-9075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+5684
-9075
lines changed

.Rbuildignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
^cran-comments\.md$
1414
^_build\.sh$
1515
^appveyor\.yml$
16-
^implement_new_methods\.md
16+
^\.implement_new_methods\.md
1717
^CONTRIBUTING\.md$
1818
^TO-DO\.md$
19+
^\.httr-oauth$
20+
^_pkgdown.yml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.Ruserdata
55
*.Rproj
66
.DS_Store
7+
.httr-oauth
File renamed without changes.

CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be repor
2121
opening an issue or contacting one or more of the project maintainers.
2222

2323
This Code of Conduct is adapted from the Contributor Covenant
24-
(http:contributor-covenant.org), version 1.0.0, available at
25-
http://contributor-covenant.org/version/1/0/0/
24+
(http://contributor-covenant.org), version 1.0.0, available at
25+
http://contributor-covenant.org/version/1/0/0/.

CONTRIBUTING.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
11
# Contributing
22

3-
Contributions to the `infer` whether in the form of bug fixes, issue reports, new code or documentation improvement
4-
are encouraged and welcome. We welcome novices who may have never contributed to a package before as well as friendly
5-
veterans looking to help us improve the package for users.
3+
Contributions to the `infer` whether in the form of bug fixes, issue reports, new
4+
code or documentation improvements are encouraged and welcome. We welcome novices
5+
who may have never contributed to a package before as well as friendly
6+
veterans looking to help us improve the package for users. We are eager to include
7+
and accepting of contributions from everyone that meets our [code of conduct](CONDUCT.md)
8+
guidelines.
69

7-
Please use the GitHub issues. For any pull request, please link to or open a corresponding issue
8-
in GitHub issues. Please ensure that you have notifications turned on and respond to questions, comments or
9-
needed changes promptly.
10+
Please use the GitHub issues. For any pull request, please link to or open a
11+
corresponding issue in GitHub issues. Please ensure that you have notifications
12+
turned on and respond to questions, comments or needed changes promptly.
1013

1114
## Tests
1215

13-
`infer` uses `testthat` for testing. Please try to provide 100% test coverage for any submitted code and always check
14-
that existing tests continue to pass. If you are a beginner and need help with writing a test, mention this
16+
`infer` uses `testthat` for testing. Please try to provide 100% test coverage
17+
for any submitted code and always check that existing tests continue to pass.
18+
If you are a beginner and need help with writing a test, mention this
1519
in the issue and we will try to help.
1620

17-
It's also helpful to run `goodpractice::gp()` to ensure that lines of code are not over 80 columns and that all lines of code have tests written. Please do so prior to submitting any pull request and fix any suggestions from there.
21+
It's also helpful to run `goodpractice::gp()` to ensure that lines of code are
22+
not over 80 columns and that all lines of code have tests written. Please do so
23+
prior to submitting any pull request and fix any suggestions from there.
1824
Reach out to us if you need any assistance there too.
1925

2026
## Pull requests
2127

22-
Pull requests should be against the `develop` branch NOT the `master` branch. You can set this when creating
23-
your pull request. Please make a separately named branch to submit. Keep each branch for a complete specific
24-
issue.
28+
Pull requests should be against the `develop` branch NOT the `master` branch.
29+
You can set this when creating your pull request. Please make a separately
30+
named branch to submit. Keep each branch for a complete specific issue.
2531

2632
## Code style
2733

28-
Please use snake case (such as `rep_sample_n`) for function names. Besides that, in general follow the
29-
[tidyverse style](http://style.tidyverse.org/) style for R.
34+
Please use snake case (such as `rep_sample_n`) for function names.
35+
Besides that, in general follow the
36+
[tidyverse style](http://style.tidyverse.org/) for R.
3037

3138
## Code of Conduct
3239

3340
When contributing to the `infer` package you must follow the code of
34-
conduct defined in [CONDUCT.md](CONDUCT.md)
41+
conduct defined in [CONDUCT](CONDUCT.md).

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: infer
22
Type: Package
33
Title: Tidy Statistical Inference
4-
Version: 0.2.0
4+
Version: 0.3.0
55
Authors@R: c(
66
person("Andrew", "Bray", email = "[email protected]", role = c("aut", "cre")),
77
person("Chester", "Ismay", email = "[email protected]", role = "aut"),
@@ -12,7 +12,8 @@ Authors@R: c(
1212
person("Johanna", "Hardin", email = "[email protected]", role = "ctb"),
1313
person("Albert", "Kim", email = "[email protected]", role = "ctb"),
1414
person("Neal", "Fultz", email = "[email protected]", role = "ctb"),
15-
person("Doug", "Friedman", email = "[email protected]", role = "ctb"))
15+
person("Doug", "Friedman", email = "[email protected]", role = "ctb"),
16+
person("Richie", "Cotton", email = "[email protected]", role = "ctb"))
1617
Description: The objective of this package is to perform inference using an expressive statistical grammar that coheres with the tidy design framework.
1718
License: CC0
1819
Encoding: UTF-8

NAMESPACE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export("%>%")
55
export(calculate)
66
export(chisq_stat)
77
export(chisq_test)
8+
export(conf_int)
89
export(generate)
10+
export(get_ci)
11+
export(get_confidence_interval)
12+
export(get_pvalue)
913
export(hypothesize)
14+
export(p_value)
1015
export(rep_sample_n)
1116
export(specify)
1217
export(t_stat)

NEWS.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
# infer 0.2.1
2+
3+
- Added `conf_int` logical argument and `conf_level` argument to `t_test()`
4+
- Switched `shade_color` argument in `visualize()` to be `pvalue_fill` instead
5+
since fill color for confidence intervals is also added now
6+
- Shading for Confidence Intervals in `visualize()`
7+
- Green is default color for CI and red for p-values
8+
- `direction = "between"` to get the green shading
9+
- Currently working only for simulation-based methods
10+
- Implemented `conf_int()` function for computing confidence interval provided a simulation-based method with a `stat` variable
11+
- `get_ci()` and `get_confidence_interval()` are aliases for `conf_int()`
12+
- Converted longer confidence interval calculation code in vignettes to use `get_ci()` instead
13+
- Implemented `p_value()` function for computing p-value provided a simulation-based method with a `stat` variable
14+
- `get_pvalue()` is an alias for `p_value()`
15+
- Converted longer p-value calculation code in vignettes to use `get_pvalue()` instead
16+
- Implemented Chi-square Goodness of Fit observed stat depending on `params` being set in `hypothesize` with `specify() %>% calculate()` shortcut
17+
- Removed "standardized" slope $t$ since its formula is different than "standardized" correlation and there is no way currently to give one over the other
18+
- Implemented correlation with bootstrap CI and permutation hypothesis test
19+
- Filled the `type` argument automatically in `generate()` based
20+
on `specify()` and `hypothesize()`
21+
- Added message if `type` is given differently than expected
22+
- Implemented `specify() %>% calculate()` for getting observed
23+
statistics.
24+
- `visualize()` works with either a 1x1 data frame or a vector
25+
for its `obs_stat` argument
26+
- Got `stat = "t"` working
27+
- Refactored `calculate()` into smaller functions to reduce complexity
28+
- Produced error if `mu` is given in `hypothesize()` but `stat = "median"`
29+
is provided in `calculate()` and other similar mis-specifications
30+
- Tweaked `chisq_stat()` and `t_stat()` to match with `specify() %>% calculate()` framework
31+
- Both work in the one sample and two sample cases by providing `formula`
32+
- Added `order` argument to `t_stat()`
33+
- Added implementation of one sample `t_test()` by passing in the `mu` argument to `t.test`
34+
from `hypothesize()`
35+
- Tweaked `pkgdown` page to include ToDo's using [{dplyr}](https://github.com/tidyverse/dplyr/blob/master/_pkgdown.yml) example
36+
137
# infer 0.2.0
238

339
- Switched to `!!` instead of `UQ()` since `UQ()` is deprecated in
@@ -14,7 +50,7 @@ use for observed statistics and theoretical density curves
1450
unique values for generated statistics is small
1551
- Added shading for `method = "theoretical"`
1652
- Implemented shading for simulation methods w/o a traditional distribution
17-
- Use percentiles to determine two-tailed shading
53+
- Use percentiles to determine two-tailed shading
1854
- Changed `method = "randomization"` to `method = "simulation"`
1955
- Added warning when theoretical distribution is used that
2056
assumptions should be checked
@@ -39,7 +75,7 @@ current implementations being
3975
They now live in `specify()`.
4076
- Updated documentation with examples
4177
- Created `pkgdown` site materials
42-
- Deployed to https://infer.netlify.com
78+
- Deployed to https://infer.netlify.com
4379

4480

4581
# infer 0.0.1

0 commit comments

Comments
 (0)