Learn R Programming

truthiness (version 1.2.5)

power_equiv: Power Simulation For Equivalence Test

Description

Power Simulation For Equivalence Test

Usage

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

Run this code
# NOT RUN {
set.seed(62)

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

Run the code above in your browser using DataLab