Nothing
# Purpose: inspect a structural model/matrix
# Get all unique construct names in a structural model
construct_names <- function(smMatrix) {
unique(c(smMatrix[,1], smMatrix[,2]))
}
# Get all endogenous construct names in a structural model
all_endogenous <- function(smMatrix) {
unique(smMatrix[, "target"])
}
# Get all exogenous construct names in a structural model
all_exogenous <- function(smMatrix) {
unique(smMatrix[, "source"])
}
# Get antecedent construct names for a give construct in a model
antecedents_of <- function(outcome, smMatrix) {
smMatrix[smMatrix[,2] == outcome, "source"]
}
# Identify theantedents of a dv that are interactions
interactions_of <- function(outcome, smMatrix) {
antecedents_of(outcome, smMatrix)[grep("\\*",antecedents_of(outcome, smMatrix))]
}
# Identify if interactions occur in the sm model
all_interactions <- function(smMatrix) {
construct_names(smMatrix)[grep("\\*",construct_names(smMatrix))]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.