SA_lookup {phantSEM}R Documentation

Lookup Table for Sensitivity Analysis

Description

SA_lookup() is used to look up the sensitivity analysis results for a two-wave mediation model when provided with the cross-sectional correlations.

Usage

SA_lookup(CorXM, CorXY, CorMY)

Arguments

CorXM

The observed correlation between predictor X and mediator M.

CorXY

The observed correlation between predictor X and outcome Y.

CorMY

The observed correlation between mediator M and outcome Y.

Value

Results of a sensitivity analysis with varying cross-lagged and autoregressive correlations.

Examples

# specify correlations
xm <- .2
xy <- .3
my <- .4

output <- SA_lookup(
  CorXM = xm,
  CorXY = xy,
  CorMY = my
)

[Package phantSEM version 1.0.0.0 Index]