Questions tagged [semplot]

semPlot: Path Diagrams and Visual Analysis of Various SEM Packages' Output

Resources:

  1. cran.r-project.org
  2. github
  3. examples
43 questions
1
vote
0 answers

R: install.packages("semPlot") does not seem to work

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…
1
vote
3 answers

How do I include p-value and R-square for the estimates in semPaths?

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…
Louise M
  • 53
  • 1
  • 6
1
vote
0 answers

Switch the order in semPaths graph

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…
1
vote
1 answer

Curved vector arrows with custom layout in semPlot

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,…
Evan
  • 11
  • 1
1
vote
0 answers

Unwanted bars in nodes of manifest variables by semPlot::semPaths

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 =…
psyguy
  • 312
  • 3
  • 16
1
vote
0 answers

How to seperately label edge.label.position for parameter estimates and covariances

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…
Jamie Tock
  • 127
  • 1
  • 4
1
vote
0 answers

DiagrammeR - create_graph and residual covariances

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…
giac
  • 4,261
  • 5
  • 30
  • 59
1
vote
2 answers

direct path not displayed in semPaths plot for lavaan mediator model

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 +…
Mark Heckmann
  • 10,943
  • 4
  • 56
  • 88
0
votes
0 answers

How to solve problems when installing semPlot

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…
0
votes
0 answers

confirmatory factor analysis (CFA) is returning "solution has NOT been found!"

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…
0
votes
0 answers

Error in lavaan::lavaan ERROR: missing observed variables in dataset: TR EW SRI VPM DELY

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…
0
votes
0 answers

Where is the std.all & std.lv information stored in the lavaan object?

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…
ramm
  • 1
0
votes
0 answers

Moderator variable test using SEMinR, as well as warppls

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"…
0
votes
0 answers

Avoid overlapping factor loadings when using semplot function in R

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 =~…
Paul
  • 83
  • 6
0
votes
2 answers

Errors when trying to install 'semPlot' R package

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,…
Aya
  • 1