power.t:
The power function used in the optim.two.stage.single function
Description
The power function used in the optim.two.stage.single() function. It uses the Monte Carlo simulation to estimate the expected number of detectable proteins with the true effects.
Usage
power.t(initial, optimize = TRUE)
Arguments
initial
The current solution selected from the solution space
optimize
A logical variable to control the output of the function: When it is true, it outputs the expected number of true effects.