Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Ch09-Power

Extract the Power results


Description

The function ‘Power’ is used to summarize the ‘cpd.PwrGSD’ object into a dataframe containing power and type II error, summed over analysis times. The data frame is stacked by rows of ‘descr’ and by ‘stat’ (if there are multiple statistics being profiled per each component of ‘Elements’), for generating tables or performing other computations.

Usage

Power(object, subset, nlook.ind = NULL)

Arguments

object

an object of class cpd.PwrGSD

subset

you may extract a subset via a logical expression in the variables of the index dataframe, descr

nlook.ind

(optional) a vector containing a subset of the indices of analysis times over which the sum is formed. Use this for example if you want to know the probability of stopping by the kth analysis under an unfavorable alternative. Set nlook.ind to 1:k

Value

a dataframe, stacked by rows of ‘descr’ and then by choices of ‘stat’

Author(s)

Grant Izmirlian <izmirlian@nih.gov>

See Also

Examples

## See the `cpd.PwrGSD' example

PwrGSD

Power in a Group Sequential Design

v2.3.3
GPL (>= 2)
Authors
Grant Izmirlian <izmirlig@mail.nih.gov>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.