find.power: Predict power from an rSPACE simulation and analysis

Description Usage Arguments Details Value Author(s)

Description

Uses a loess smoother to predict either the number of grid cells needed to achieve a given level of power or the expected power from a specific sample size based on rSPACE output.

Usage

1
findPower(folder, data, CI = 0.95, pwr = 0.8, n_grid=NULL)

Arguments

folder

rSPACE folder containing both simulation and analysis output for a scenario

data

Dataframe with previously loaded results

CI

Significance level (one-tailed test)

pwr

If specified, desired power

n_grid

If specified, number of grid cells used

Details

Data must be provided either by specifying a folder within which to look for a results file (sim_results.txt) and parameter list (Parameters.rdata) or by providing previously loaded results.

If multiple results files are found in folder only the first will be used by default. To specify a specific results file, the full path for the results file can be used for folder.

Depending on whether pwr or n_grid are specified, findPower will return the opposite. If both pwr and n_grid, n_grid will be ignored

Value

Either the number of cells required to reach a given power or the power expected from a sample of a given number of cells.

Author(s)

Martha Ellis


rSPACE documentation built on May 29, 2017, 11:37 a.m.