Skip to content

Commit

Permalink
Revised vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
ingorohlfing committed Jan 23, 2020
1 parent 8f71982 commit 0a4edde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/Introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ qp_cases(0.9, null_hypo = 0.80, alt_hypo = 1)
```


The function `qp_cases_brute()` allows you to estimate how many cases you need to achieve a target level of power. The function input comprises all specifications of `power_target` (the intended level of power) and all parameters except `cases`. The function runs simulations and iteratively searches for the number of cases yielding a power estimate that is sufficiently close to the target level. (see above on the closeness of the target level and the estimated level).
The function `qp_cases_brute()` allows you to estimate how many cases you need to achieve a target level of power. The function input requires the desired level of power (`power_target`) and all parameters known from `qcapower()` except `cases`. The function runs simulations and iteratively searches for the number of cases yielding a power estimate that is sufficiently close to the target level. (see above on the closeness of the target level and the estimated level).

**Note:** Running the function may take some time with a high number of simulations and permutations.

```{r qp_cases_brute, eval = F}
# not run
qp_cases_brute(0.9, null_hypo = 0.80, alt_hypo = 1)
qp_cases_brute(power_target, 0.9, null_hypo = 0.80, alt_hypo = 1)
```

0 comments on commit 0a4edde

Please sign in to comment.