summary: Tabular summaries of power simulation

View source: R/sim.R

summaryR Documentation

Tabular summaries of power simulation

Description

Tabular summaries of power simulation

Usage

summary(sim, crit, thres, digits = 3, how = "greater")

Arguments

sim

A Sim or a SimCurve object, output from 'sim_power()' or 'sim_curve()'.

crit

A string specifying the significance criteria.

thres

A number or vector of numbers specifying the thresholds of "significance".

digits

An integer for the number of decimal points to display.

how

A string, whether to compare the criterion 'greater' or 'lesser' than the threshold.

Value

A data.frame summary of power for each predictor for each combination of thresholds, sample size, signal-to-noise ratios.


phuchonguyen/mpower documentation built on Oct. 2, 2022, 7:57 p.m.