power_equiv: Power Simulation For Equivalence Test

Description Usage Arguments Value Examples

View source: R/power.R

Description

Power Simulation For Equivalence Test

Usage

1
power_equiv(phase_eff, delta, target_effect, nsubj, nruns, outfile = ".AUTO.")

Arguments

phase_eff

A four-element vector, each element of which specifies the illusory truth effect at the corresponding phase, on the log odds scale (see gen_data).

delta

Smallest (raw) effect size of interest, on log odds scale; NULL to store fitted model object.

target_effect

Which effect to test, the main effect ('main') or the interaction effect ('interaction').

nsubj

Number of subjects.

nruns

How many simulations to run.

outfile

One of three options: (1) file name to save the results in (with extension .rds); (2) ".AUTO." to create a descriptive filename automatically; or (3) NULL to return the results of the simulation.

Value

Either the name of the file where results are saved or a matrix containing results of fit_lmem or fit_clmm).

Examples

1
2
3
4
5
set.seed(62)


## takes a few minutes to complete
power_equiv(c(0, .14, .14, .14), .1, "main", 24, 1, NULL) 

truthiness documentation built on May 24, 2021, 9:07 a.m.