Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

interaction_term

Interaction function


Description

interaction_term creates interaction measurement items by applying product indicator, two stage, or orthogonal approaches to creating new interaction constructs.

Usage

interaction_term(iv, moderator, method, weights)

Arguments

iv

The independent variable that is subject to moderation.

moderator

The moderator variable.

method

The method to generate the estimated interaction term with a default of 'two_stage'.

weights

The weighting mode for interaction items in a PLS model (only) with default of 'modeA'.

Details

This function automatically generates interaction measurement items for a PLS or a CBSEM model.

Value

An un-evaluated function (promise) for generating a vector of interaction terms.

Interaction Combinations as generated by the interaction or interaction_term methods.

Examples

data(mobi)

# seminr syntax for creating measurement model
mobi_mm <- constructs(
  composite("Image",        multi_items("IMAG", 1:5)),
  composite("Expectation",  multi_items("CUEX", 1:3)),
  composite("Value",        multi_items("PERV", 1:2)),
  composite("Satisfaction", multi_items("CUSA", 1:3)),
  interaction_term(iv = "Image", moderator = "Expectation", method = orthogonal),
  interaction_term(iv = "Image", moderator = "Value", method = product_indicator)
)

#  structural model: note that name of the interactions construct should be
#  the names of its two main constructs joined by a '*' in between.
mobi_sm <- relationships(
  paths(to = "Satisfaction",
        from = c("Image", "Expectation", "Value",
                 "Image*Expectation", "Image*Value"))
)

mobi_pls <- estimate_pls(mobi, mobi_mm, mobi_sm)
summary(mobi_pls)

seminr

Building and Estimating Structural Equation Models

v2.0.2
GPL-3
Authors
Soumya Ray [aut, ths], Nicholas Patrick Danks [aut, cre], André Calero Valdez [aut], Juan Manuel Velasquez Estrada [ctb], James Uanhoro [ctb], Johannes Nakayama [ctb], Lilian Koyan [ctb], Laura Burbach [ctb], Arturo Heynar Cano Bejar [ctb], Susanne Adler [ctb]
Initial release
2021-04-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.