Description Usage Arguments Value See Also Examples
qp_cases_brute
calculates the number of cases needed for a particular
power level. The function starts with the number of cases given by start_value
and iteratively simulates power and adjusts the number of cases
until the power_target
is met or the max_value
has been reached.
Running the function can take a lot of time. Use qp_cases
to
1 2 3 4 5 6 7  qp_cases_brute(
power_target,
start_value = 2,
max_value = 100,
progress = TRUE,
...
)

power_target 
Power level target 
start_value 
Default number of cases for initial search 
max_value 
Default maximum number of cases for search 
progress 
Show progress of calculation (default 
... 

An integer showing how many cases are needed to achieve the target level of power.
1 2 3 4 5 6 7  ## Not run:
qp_cases_brute(power_target = 0.9, null_hypo = 0.80, alt_hypo = 1)
qp_cases_brute(power_target = 0.9, null_hypo = 0.80, alt_hypo = 1, start_value = 20,
max_value = 50, perms = 500)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.