# Building and Estimating Structural Equation Models

## Documentation for package ‘seminr’ version 2.3.4

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Code demos. Use demo() to run them.

## Help Pages

A B C D E F G H I M N O P R S T U

## -- A --

as.reflective | Converts all contructs of a measurement model, or just a single construct into reflective factors.
as.reflective.construct | Converts a contruct of a measurement model into a reflective factor.
as.reflective.interaction | Converts interaction of a measurement model into a reflective factors.
as.reflective.measurement_model | Converts all contructs of a measurement model, or just a single construct into reflective factors.
associations | Specifies inter-item covariances that should be supplied to CBSEM estimation ('estimate_cbsem') or CFA estimation ('estimate_cfa')

## -- B --

bootstrap_model | seminr bootstrap_model Function
boot_paths_df | Return all path bootstraps as a long dataframe. Columns of the dataframes are specified paths and rows are the estimated coefficients for the paths at each bootstrap iteration.
browse_plot | Open Edotor graphViz Website with the preloaded in the Browser

## -- C --

check_test_plot | A function to create regression plots (maybe not needed?)
composite | Composite construct measurement model specification
compute_itcriteria_weights | Function to calculate Akaike weights for IT Criteria
constructs | Measurement functions
corp_rep_data | Measurement Instrument for the Corporate Reputation Model
corp_rep_data2 | A Second Measurement Instrument for the Corporate Reputation Model
correlation_weights | Outer weighting scheme functions to estimate construct weighting.
cor_rsq | Returns R-sq of a dv given correlation matrix of ivs, dv cors <- cbsem_summary$descriptives$correlations$constructs cor_rsq(cors, dv_name = "Value", iv_names = c("Image", "Quality"))
csem2seminr | seminr csem2seminr() function

## -- D --

df_xtab_matrix | Cross-tabulates columns of a dataframe into a matrix with NAs for unspecified pairs
dot_component_mm | Generates the dot code for the measurement model
dot_graph | Generate a dot graph from various SEMinR models
dot_graph.boot_seminr_model | Generate a dot graph from various SEMinR models
dot_graph.cbsem_model | Generate a dot graph from various SEMinR models
dot_graph.cfa_model | Generate a dot graph from various SEMinR models
dot_graph.measurement_model | Generate a dot graph from various SEMinR models
dot_graph.pls_model | Generate a dot graph from various SEMinR models
dot_graph.specified_model | Generate a dot graph from various SEMinR models
dot_graph.structural_model | Generate a dot graph from various SEMinR models
dot_graph_htmt | Creates a dot string with a network graph of constructs based on HTMT measures
dot_subcomponent_mm | generates the dot code for a subgraph (per construct)

## -- E --

edge_template_default | The default template for labeling bootstrapped edges
edge_template_minimal | A minimal template for labeling bootstrapped edges that only shows the bootstrapped mean value
esc_node | Wrap a text in single quotes
estimate_cbsem | seminr estimate_cbsem() function
estimate_cfa | seminr estimate_cfa() function
estimate_lavaan_ten_berge | seminr estimate_lavaan_ten_berge() function
estimate_pls | seminr estimate_pls() function
estimate_pls_mga | Performs PLS-MGA to report significance of path differences between two subgroups of data
extract_bootstrapped_values | extract bootstrapped statistics from an edge using a row_index
extract_htmt_nodes | Helper function that applies formatting to each construct
extract_mm_coding | extracts the constructs and their types from the model
extract_mm_edges | extract mm edges from model for a given index of all constructs
extract_mm_edge_value | gets the mm_edge value (loading, weight) for bootstrapped and regular models
extract_mm_nodes | gets the individual nodes and applies formatting
extract_sm_nodes | Helper function that applies formatting to each construct

## -- F --

format_endo_node_label | Helps to render a node label for endogenous variables
format_exo_node_label | Helps to render a node label for exogenous variables
fSquared | seminr fSquared Function

## -- G --

get_construct_element_size | Gets the optimal size for construct elements in the plot
get_construct_type | Returns the type of a construct from a model
get_manifest_element_size | Gets the optimal size for manifest elements in the plot
get_mm_edge_style | individual styles for measurement model edges
get_mm_node_shape | Get a string to insert into a node specification using the themed shape
get_mm_node_style | get global measurement model node style
get_sm_node_shape | Get a string to insert into a node specification using the themed shape
get_value_dependent_mm_edge_style | Formats the style of the structural model edges
get_value_dependent_sm_edge_style | Formats the style of the structural model edges

## -- H --

higher_composite | higher_composite
higher_reflective | higher_reflective

## -- I --

influencer_data | Measurement Instrument for the Influencer Model
interaction_term | Interaction function
is_sink | Tests whether the i_th construct is endogenous or not
item_errors | Specifies pair of items, or sets of items, that should covary. Used to specify error covariances for 'associations'.

## -- M --

mean_replacement | Function to clean data of omitted values by mean replacement
mobi | Measurement Instrument for the Mobile Phone Industry
mode_A | Outer weighting scheme functions to estimate construct weighting.
mode_A, | Outer weighting scheme functions to estimate construct weighting.
mode_B | Outer weighting scheme functions to estimate construct weighting.
mode_B, | Outer weighting scheme functions to estimate construct weighting.
multi_items | Multi-items measurement model specification

## -- N --

node_endo_template_default | The default template for labeling endogenous construct nodes
node_exo_template_default | The default template for labeling exogenous construct nodes

## -- O --

orthogonal | 'orthogonal' creates interaction measurement items by using the orthogonalized approach wherein

## -- P --

paths | Structural specification functions for seminr package
path_factorial | Inner weighting scheme functions to estimate inner paths matrix
path_weighting | Inner weighting scheme functions to estimate inner paths matrix
plot.reliability_table | Function for plotting the measurement model reliability metrics of a PLS model
plot.seminr_model | Plot various SEMinR models
plot_htmt | Plots a network graph of constructs based on HTMT measures
plot_interaction | Function for plotting interaction plot for moderated PLS or CBSEM model
plot_scores | Functions for reporting the Path Coefficients and R2 of endogenous constructs and for generating a scatterplot matrix of construct scores.
PLSc | seminr PLSc Function
predict_DA | Predictive Scheme
predict_EA | Predictive Scheme
predict_pls | Predict_pls performs either k-fold or LOOCV on a SEMinR PLS model and generates predictions
print.seminr_pls_mga | Summary function for PLS-MGA
product_indicator | 'product_indicator' creates interaction measurement items by scaled product indicator approach.

## -- R --

reflective | Reflective construct measurement model specification
regression_weights | Outer weighting scheme functions to estimate construct weighting.
relationships | Structural specification functions for seminr package
report_paths | Functions for reporting the Path Coefficients and R2 of endogenous constructs and for generating a scatterplot matrix of construct scores.
rerun | Reruns a previously specified seminr model/analysis
rerun.pls_model | Reruns a previously specified seminr PLS model
rho_A | seminr rho_A Function

## -- S --

save_plot | Saves a SEMinR model plot to file
seminr_theme_create | Create a theme for a seminr graph visualization
seminr_theme_dark | The theme function for an inverted theme on black background.
seminr_theme_default | A colored theme
seminr_theme_get | Get and set the active theme
seminr_theme_old | A theme function for a basic b/w theme
seminr_theme_set | Get and set the active theme
seminr_theme_smart | A colored theme
simplePLS | seminr simplePLS Function
single_item | Single-item measurement model specification
slope_analysis | Function for plotting a slope analysis for an interaction in a PLS model
specific_effect_significance | seminr specific effect significance function
specify_model | seminr specify_model() function
standardize_safely | Standardize (scale) a matrix/df and report interpretable errors

## -- T --

total_indirect_ci | seminr total indirect confidence intervals function

two_stage

Creates an interaction measurement item using a two-stage approach. The two-stage procedure for both PLS and CBSEM models estimates construct scores in the first stage, and uses them to produce a single-item product item for the interaction term in the second stage. For a PLS model, the first stage uses PLS to compute construct scores. For a CBSEM model, the first stage uses a CFA to produce ten Berge construct scores.

## -- U --

unit_weights | Outer weighting scheme functions to estimate construct weighting.