# Regarding standardized and unstandardized coefficient in lavaan and path diagram

102 views

### Anita Devi

Jun 30, 2019, 12:50:14 PM6/30/19
to lavaan
Hi everyone,

I am very new to the SEM concept and dealing with some of the code problems. Kindly help me out.

Semmodel<- '
Pro=~CP
Ash=~AC
Mineral=~Mg+P
Herb~Pro+Fibr+Ash+Mineral
'
library(lavaan)
library(semPlot)
Testmodel<- cfa(Semmodel, overall)
summary(Test, rsq= T, standardize=T, fit.measures=T)
fitMeasures(Testmodel, c("chisq", "df", "pvalue", "cfi","ifi","nfi", "rmsea","gfi","SRMR","RMR", "aic","bic"))

chisq       df             pvalue      cfi      ifi                 nfi    rmsea      gfi     srmr        rmr         aic          bic
35.770    7.000    0.000    0.939    0.941    0.928    0.111    0.972    0.046    0.046 6250.561  6330.721

1) I wanted to know about both the standardized and unstandardized coefficient to see the difference as we get in AMOS. But I don't know how to do it in r. Although, I had used the modification indices function for standardizing the rmsea and any changes in the model also increasing the rmsea value.

2) And also I am plotting the model using semPath function. So, I wanted to know if there is any way that r-squared value can be included in sem path diagram.

Regards
Anita Devi

### Terrence Jorgensen

Jul 2, 2019, 4:05:21 AM7/2/19
to lavaan
I wanted to know about both the standardized and unstandardized coefficient to see the difference as we get in AMOS. But I don't know how to do it in r.

Do what?  You already requested the standardized coefficients from summary(), but you need to run it on your fitted model object "Testmodel", not "Test".  Judging from SRMR == RMR, I'm guessing you are already analyzing standardized variables, so I expect the standardized and unstandardized estimates will be the same, too.

Although, I had used the modification indices function for standardizing the rmsea and any changes in the model also increasing the rmsea value.

I don't understand what that means.

2) And also I am plotting the model using semPath function. So, I wanted to know if there is any way that r-squared value can be included in sem path diagram.

I don't see it mentioned on the ?semPaths help page

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

### Anita Devi

Jul 3, 2019, 1:27:01 AM7/3/19
Hello,
1) thanks for the reply. I did some modification with the model and now the problem is solved.

2) And also I am plotting the model using semPath function. So, I wanted to know if there is any way that r-squared value can be included in sem path diagram.

I don't see it mentioned on the ?semPaths help page

I am sending the link of the paper which doesn't mention using package semPlot for diagram instead they had used lavaan but didn't mention the function.

Thanks

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.

--
Anita Devi
Project Fellow
Biodiversity Conservation and Ganga Rejuvenation (Ganga Aqualife Conservation and Monitoring Centre)
Wildlife Institute of India, Post Box # 18, Dehra Dun. 248001
Uttarakhand, INDIA

Ph. 7409012159