Uses regression to estimate the value needed to attain the target power, given a set of simulation results.
Usage
power_estimate(power_data, x, power_target)
Value
A data frame containing the value of x that achieves the target power for each combination of settings. Will return NA if target power is outside the simulation data.
Arguments
power_data
Output of power_interaction().
x
The name of the target variable as a character string.
power_target
The desired power level. Must be between 0 and 1 (e.g., 0.8 for 80% power).