Learn R Programming

simsem (version 0.2-8)

findTargetPower: Find a value of varying parameters that provides a given value of power.

Description

Find a value of varying parameters that provides a given value of power. This function can deal with only one varying parameter only (findPower can deal with more than one varying parameter).

Usage

findTargetPower(iv, dv, power)

Arguments

iv
A vector of the target varying parameter
dv
A data.frame of the power table of target parameters
power
A desired power.

Value

  • The value of the target varying parameter providing the desired power. If the value is NA, there is no value in the domain of varying parameters that provide the target power. If the value is the minimum value of the varying parameters, it means that the minimum value has already provided enough power. The value of varying parameters that provides exact desired power may be lower than the minimum value.

See Also

  • getPowerto find the power of parameter estimates
  • continuousPowerto find the power of parameter estimates for the result object (linkS4class{SimResult}) with varying parameters.
  • findPowerto find a value of varying parameters that provides a given value of power, which can deal with more than one varying parameter

Examples

Run this code
# No example

Run the code above in your browser using DataLab