# How to get "R-squared (R^2)" for endogenous latent variables with JASP SEM (Lavaan)?

I have spent so much time looking for the answer to this question but I've not made it so far.

Lavaan uses [ inspect(fit, 'r2') ] for R-squared but a table for "estimates" in JASP does not show R-squared.

Does my syntax in a model have a problem or is it JASP that does not provide an output for R-squared?

Then, how can I calculate R-squared for endogenous latent variables using factor loadings (estimates) and path coefficients?

Thank you!

## Comments

This will be implemented in the next version of JASP!