relationships: Structural specification functions for seminr package

View source: R/specify_relationships.R

relationshipsR Documentation

Structural specification functions for seminr package

Description

paths creates the structural paths of a PLS SEM model and relationships generates the matrix of paths.

Usage

relationships(...)

paths(from,to)

Arguments

...

A comma separated list of all the structural relationships in the the model. These paths take the form (from = c(construct_name), to = c(construct_name)).

to

The destination construct of a structural path

from

The source construct of a structural path

paths

The function paths that specifies the source and destination constructs for each of the model's structural paths.

Value

A vector of construct names and structural relationships.

Examples

mobi_sm <- relationships(
  paths(from = "Image",        to = c("Expectation", "Satisfaction", "Loyalty")),
  paths(from = "Expectation",  to = c("Quality", "Value", "Satisfaction")),
  paths(from = "Quality",      to = c("Value", "Satisfaction")),
  paths(from = "Value",        to = c("Satisfaction")),
  paths(from = "Satisfaction", to = c("Complaints", "Loyalty")),
  paths(from = "Complaints",   to = "Loyalty")
)


seminr documentation built on Oct. 14, 2024, 1:07 a.m.