Nothing
#' @noRd
# Remove from a vector of row ids parameters that are fixed in the
# standardized solution
remove_v1 <- function(pars,
sem_out) {
ptable <- lavaan::parameterTable(sem_out)
ptable$rowid <- seq_len(nrow(ptable))
stable <- lavaan::standardizedSolution(sem_out)
ngroups <- lavaan::lavTech(sem_out, "ngroups")
ptable_selected <- ptable[pars, ]
if (ngroups == 1) {
by_str <- c("lhs", "op", "rhs")
} else {
by_str <- c("lhs", "op", "rhs", "group")
}
p_merged <- merge(ptable_selected[, c(by_str, "rowid")],
stable,
by = by_str,
all.x = TRUE,
all.y = FALSE,
sort = FALSE)
out <- p_merged$rowid[!is.na(p_merged$z)]
out
}
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.