semljgui: SEM for jamovi

View source: R/semljgui.h.R

semljguiR Documentation

SEM for jamovi

Description

Path Analysis

Usage

semljgui(
  data,
  endogenous = NULL,
  factors = NULL,
  covs = NULL,
  multigroup = NULL,
  se = "standard",
  r2ci = "fisher",
  r2test = FALSE,
  bootci = "perc",
  ci = TRUE,
  ciWidth = 95,
  bootN = 1000,
  showintercepts = TRUE,
  intercepts = TRUE,
  indirect = FALSE,
  contrasts = NULL,
  showContrastCode = FALSE,
  scaling = NULL,
  endogenousTerms = list(list()),
  diagram = FALSE,
  diag_paths = "est",
  diag_resid = FALSE,
  diag_labsize = "medium",
  diag_rotate = "1",
  diag_type = "circle",
  diag_shape = "rectangle",
  diag_abbrev = "0",
  varcov,
  cov_y = TRUE,
  cov_x = TRUE,
  constraints = list(),
  syntax,
  code,
  constraints_examples = FALSE,
  showlabels = FALSE,
  scoretest = TRUE,
  cumscoretest = FALSE,
  estimator = "ML",
  likelihood = "normal",
  formula
)

Arguments

data

the data as a data frame

endogenous

a vector of strings naming the mediators from data

factors

a vector of strings naming the fixed factors from data

covs

a vector of strings naming the covariates from data

multigroup

factor defining groups for multigroup analysis

se

.

r2ci

Choose the confidence interval type

r2test

.

bootci

Choose the confidence interval type

ci

.

ciWidth

a number between 50 and 99.9 (default: 95) specifying the confidence interval width for the parameter estimates

bootN

number of bootstrap samples for estimating confidence intervals

showintercepts

TRUE or FALSE (default), show intercepts

intercepts

TRUE or FALSE (default), show intercepts

indirect

TRUE or FALSE (default), show intercepts

contrasts

a list of lists specifying the factor and type of contrast to use, one of 'deviation', 'simple', 'difference', 'helmert', 'repeated' or 'polynomial'

showContrastCode

TRUE or FALSE (default), provide contrast coefficients tables

scaling

a named vector of the form c(var1='type', var2='type2') specifying the transformation to apply to covariates, one of 'centered' to the mean, 'standardized','log' or 'none'. 'none' leaves the variable as it is.

endogenousTerms

a list of lists specifying the models for with the mediators as dependent variables.

diagram

TRUE or FALSE (default), produce a path diagram

diag_paths

Choose the diagram labels

diag_resid

TRUE or FALSE (default), produce a path diagram

diag_labsize

Choose the diagram labels

diag_rotate

Choose the diagram labels

diag_type

Choose the diagram labels

diag_shape

Choose the diagram labels

diag_abbrev

Choose the diagram labels

varcov

a list of lists specifying the covariances that need to be estimated

cov_y

TRUE or FALSE (default), produce a path diagram

cov_x

TRUE or FALSE (default), produce a path diagram

constraints

a list of lists specifying the models random effects.

syntax

.

code

.

constraints_examples

.

showlabels

.

scoretest

.

cumscoretest

.

estimator

Choose the diagram labels

likelihood

Choose the diagram labels

formula

(optional) the formula to use, see the examples

Value

A results object containing:

results$model The underlying lavaan object
results$info a table
results$fit$main a table
results$fit$constraints a table
results$fit$indices a table
results$models$r2 a table
results$models$coefficients a table
results$models$correlations a table
results$models$intercepts a table
results$models$defined a table
results$models$contrastCodeTable a table
results$pathgroup$diagrams an array of path diagrams
results$pathgroup$notes a table
results$contraintsnotes a table

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$info$asDF

as.data.frame(results$info)


semlj/semlj documentation built on June 1, 2025, 4:11 p.m.