asq_ord_bool: Is the mediation effect significant?

View source: R/RcppExports.R

asq_ord_boolR Documentation

Is the mediation effect significant?

Description

This function takes 3 U values for the asq-test for 2 ordered mediators, as well as an alpha level. It returns whether the test would reject at the given alpha level. Additionally, the cutoff, either specified by number of squares or the percentage towards the center of the transformation region, can be specified. This function is primarily called by the asq_ord function to determine if the test is significant at one of a chosen set of alpha values.

Usage

asq_ord_bool(alpha, u1, u2, u3, numSquares = 4L, upLim = 0.5)

Arguments

alpha

Significance level for the test.

u1, u2, u3

The U values to be used in the test

numSquares

The number of squares to be used in the asq-test. Always superceded by upLim

upLim

The allowed extension, between 0 and 1, of the squares towards the center of the region

Value

A boolean variable indicating if the indirect effect null hypothesis is rejected.

Examples

asq_ord_bool(.05, .02, .015, .995, upLim = .75)

ieTest documentation built on April 12, 2025, 1:49 a.m.