I've been trying to use LAVAAN, which means I need to set up "semPlot" first.
However when I try install.packages("semPlot") I receive this message:
Warning in install.packages :
dependency ‘XML’ is not available
also installing the dependencies…
I am using semPaths (semPlot package) to draw my structural equation models. After some trial and error, I have a pretty good script to show what I want. Except, I haven’t been able to figure out how to include the p-value/significance levels of the…
I'm using lavaan for my sem model and I'm having troubles in representing the final path-diagram. Basically, I would like to have the mediating variable (ability) in the middle of the graph i.e switching the position with education. For a better…
I'm new to using semPlots but found a way to organize the variables the way I wanted using a custom layout sempathmatrix. The layout of the variables is good, may need some slight tweaking, but I want the vectors to be curved. Using the curve,…
I am using the following code semPlot::semPaths to plot a lavaan model (the complete reproducible code is in this Gist).
semPaths(f,
title = FALSE,
curvePivot = TRUE,
what = "std",
rotation = 2,
layout =…
I am trying to seperately position the edge labels for the parameter estimates and the covariances. For the parameter estimates I would like them at .1 and for the covariances and disturbances I would like them at .5, but I only know how to change…
I found a really great post about converting lavaan output using DiagrammeR. However, the version of DiagrammeR used in this post is version 0.6 and I am running into some troubles in trying to reproduce the code for version 0.8…
The following mediation model comes from the lavaan tutorial.
Below I printed the model structure using semPaths from the semPlot package. But one paths appears to be missing.
set.seed(1234)
X <- rnorm(100)
M <- 0.5*X + rnorm(100)
Y <- 0.7*M +…
please help whith this error when installing semPlot. Thank you so much!!
This is the error message:
install.packages("semPlot")
--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (no fue posible…
I tried a confirmatory factor analysis with 8 variables and 3 latent variables. it gave the following warning- :
Warning messages:
1: In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: some observed variances are…
I'm trying to use a confirmatory factor analysis (CFA) in R studio. From what I have read online that CFA can be conducted in both categorical and continues variables. However the error message persists for all the continues variable. The code used…
Does anyone know where the std.all & std.lv information stored in the lavaan object?
I am attempting a work-around for a semPlot::semPaths issue by replacing the ParTable in one lavaan object with that of another. This work-around succeeds, except…
I'm learning to use various sem-pls software (such as smart-pls, warp-pls, and r), but I'm having trouble building a model using moderator variables, with warp-pls as the reference model.
sem-pls model in warp-pls
In the warppls model, the "kepuasa"…
I have fun a CFA in lavaan and am trying to plot the results in R. Data can be found here:https://github.com/pb865/EFBiasData/blob/main/EFdata.csv
Here is the CFA model code:
CommonEF =~…
I'm trying to install the package 'semPlot' in RStudio, and keep getting errors:
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'rockchalk' in library.dynam(lib,…