power:
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, and utilize the grouping information.
Usage
power(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 will output the expected number of true effects.