report_paths: Functions for reporting the Path Coefficients and R2 of...

View source: R/report_paths_and_intervals.R

report_pathsR Documentation

Functions for reporting the Path Coefficients and R2 of endogenous constructs and for generating a scatterplot matrix of construct scores.

Description

report_paths generates an easy to read table reporting path coefficients and R2 values for endogenous constructs.plot_scores generates a scatterplot matrix of each construct's scores against every other construct's scores.

Usage

report_paths(seminr_model, digits=3)

plot_scores(seminr_model, constructs=NULL)

Arguments

seminr_model

The PLS model estimated by seminr. The estimated model returned by the estimate_pls or bootstrap_model methods.

digits

A numeric minimum number of significant digits. If not specified, default is "2".

constructs

a list indicating which constructs to report. If not specified, all constructs are graphed and returned.

Details

These functions generate an easy to read table reporting path coefficients and R2 values for endogenous constructs or a scatterplot matrix of construct scores.

Value

A matrix of structural paths.

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))
)

#  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"))
)

mobi_pls <- estimate_pls(mobi, measurement_model = mobi_mm, structural_model = mobi_sm)
report_paths(mobi_pls)
plot_scores(mobi_pls)


seminr documentation built on Oct. 13, 2022, 1:05 a.m.