Skip to content

Commit

Permalink
Fix some spelling errors in vignettes.
Browse files Browse the repository at this point in the history
  • Loading branch information
astamm committed Aug 31, 2021
1 parent 231b54f commit 5ad983e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions vignettes/exactness.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ observed number of test statistics larger than or equal to
$t_\mathrm{obs}$ (using the observed sample of permutations that was
drawn).

Let $B_t$ be a random variable that counts the total number of possible
distinct test statistic values exceeding tobs and recall that $m_t$ is
the total number of possible distinct permutations. We denote by
$$ p_t = \frac{B_t + 1}{m_t + 1}, $$the permutation p-value when the
exhaustive list of all permutations is used.
Let $B_t$ be a random variable that counts the total number of possible distinct
test statistic values exceeding $t_\mathrm{obs}$ and recall that $m_t$ is the
total number of possible distinct permutations. We denote by $$ p_t = \frac{B_t
+ 1}{m_t + 1}, $$the permutation p-value when the exhaustive list of all
permutations is used.

As we have seen before, it is straightforward to show that $B_t$ follows
a discrete uniform distribution on the integers $0, \dots, m_t$ and
Expand Down
6 changes: 3 additions & 3 deletions vignettes/flipr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ load("../R/sysdata.rda")

The permutation framework is perfectly suited for making inference as it allows
one to perform point estimation, confidence regions and hypothesis tests under
mild assumptions about the collected data and no distributional assmuption. In
mild assumptions about the collected data and no distributional assumption. In
this article, we briefly illustrate how each of these aspects can be treated
from a permutation point of view using the
[**flipr**](https://astamm.github.io/flipr/) package. This package has been
written and is intended as a low-level implementation of the permutation
framework in the context of statistical inference. The mathematical object
behind the scene is the so-called plausibility function, sometimes called
p-value function. This article explains what the plausbility function is and shows how it can be easily computed using the
p-value function. This article explains what the plausibility function is and shows how it can be easily computed using the
permutation framework with [**flipr**](https://astamm.github.io/flipr/). We
illustrate the shape of the plausibility function using both Gaussian and Gamma
distributions.
Expand Down Expand Up @@ -232,7 +232,7 @@ pfa$grid
select(pfa$grid, -pvalue)
```

We can go a step further and evaluate the plaubility function on that grid using the `$evaluate_grid()` method as follows:
We can go a step further and evaluate the plausibility function on that grid using the `$evaluate_grid()` method as follows:
```{r, eval=FALSE}
pfa$evaluate_grid(grid = pfa$grid)
```
Expand Down

0 comments on commit 5ad983e

Please sign in to comment.