Skip to content

Commit

Permalink
Update pkgdown and vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Jun 11, 2018
1 parent 112145c commit 08f47ee
Show file tree
Hide file tree
Showing 20 changed files with 377 additions and 164 deletions.
21 changes: 21 additions & 0 deletions docs/articles/mtcars_examples.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

293 changes: 225 additions & 68 deletions docs/articles/observed_stat_examples.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 4 additions & 31 deletions docs/articles/profiles_examples_both_methods.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions docs/reference/calculate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions man/calculate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions tests/testthat/test-calculate.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ test_that("grouping (explanatory) variable is a factor (two var problems)", {
expect_error(calculate(gen_iris2, stat = "diff in means"))
expect_error(calculate(gen_iris2, stat = "diff in medians"))
# Since shifts to "Slope with t"
expect_silent(calculate(gen_iris2, stat = "t"))
## Not implemented
# expect_silent(calculate(gen_iris2, stat = "t"))
})

test_that("grouping (explanatory) variable is numeric (two var problems)", {
Expand Down Expand Up @@ -289,12 +290,13 @@ test_that("Permute F test works", {
expect_silent(calculate(gen_iris13, stat = "F"))
})

test_that("Permute slope test works", {
test_that("Permute slope/correlation test works", {
gen_iris14 <- iris %>%
specify(Petal.Width ~ Petal.Length) %>%
hypothesize(null = "independence") %>%
generate(reps = 10, type = "permute")
expect_silent(calculate(gen_iris14, stat = "slope"))
expect_silent(calculate(gen_iris14, stat = "correlation"))
})

test_that("order being given when not needed gives warning", {
Expand Down
9 changes: 9 additions & 0 deletions vignettes/mtcars_examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,12 @@ mtcars %>%
calculate(stat = "slope")
```

Two numerical vars - correlation

```{r}
mtcars %>%
specify(mpg ~ hp) %>%
generate(reps = 100, type = "bootstrap") %>%
calculate(stat = "correlation")
```

Loading

0 comments on commit 08f47ee

Please sign in to comment.