semljgui | R Documentation |
Path Analysis
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
)
data |
the data as a data frame |
endogenous |
a vector of strings naming the mediators from |
factors |
a vector of strings naming the fixed factors from
|
covs |
a vector of strings naming the covariates from |
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 |
|
intercepts |
|
indirect |
|
contrasts |
a list of lists specifying the factor and type of contrast
to use, one of |
showContrastCode |
|
scaling |
a named vector of the form |
endogenousTerms |
a list of lists specifying the models for with the mediators as dependent variables. |
diagram |
|
diag_paths |
Choose the diagram labels |
diag_resid |
|
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 |
|
cov_x |
|
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.