Went for a very cold walk, listened to #quantitude podcast, and came back thinking of this T-shirt.

If I were to ever make it, I'd wear it to a conference. I wonder of Yves Roseel would like one.

#tshirt #rstats #lavaan #notrun #silly

Does anyone know how to get an R-squared value for a fitted model using #lavaan in #Rstats? Specifically, I'm looking for R-squared for a regression model (i.e., one DV). I'm finding very little to work with online. I have a coauthor insisting that R2 is critical for his publication venue.

#question #lm #model #sem #statistics

"Your mom's not identified!" "Your mom is non-positive definite!" "Your mom is reciprocally singular!"

(Me running models in #Rstats using #lavaan today)

#statistics #datascience #shitpost #ImSorry

#statstab #284 Simulate Data From a {lavaan} Model Syntax

Thoughts: This is built-in to lavaan but useful to know it exists, especially when validating and pre-reg models.

#lavaan #simulation #cfa #efa #openscience #data

https://rdrr.io/cran/lavaan/man/simulateData.html

simulateData: Simulate Data From a Lavaan Model Syntax in lavaan: Latent Variable Analysis

#statstab #278 Bayesian Latent Variable Modeling in R with
{blavaan}

Thoughts: This model has grown a lot, but there is little complete guidance on how to use it. Here is the dev talking about it.

#bayesian #SEM #CFA #blavaan #r #lavaan #pathanalysis

https://youtu.be/xJy5zIkzgvg

Bayesian Latent Variable Modeling in R with {blavaan}

YouTube

#stats help: is there any online tutorial for ordinal CFA with {blavaan}?

#bayes #bayesian #blavaan #lavaan #cfa #sem #tutorial

I want to reproduce a paper in classroom as an exercise for the lavaan package. Where can I find a paper on structural equation modeling where the author shared the original data? If you could provide one, thank you very much
#tidyverse
#ggplot2
#lavaan
#sem
#Rstats

I regard myself as relatively technologically proficient and often an early adopter. Where many within my field would do their analyses in SPSS and write their articles in Word (which is fine), I prefer a workflow with, say, #RStudio and #Quarto, write analyses and text as a single reproducible document, and collaborate with #GitHub. Still, the whole generative AI thing has always... repelled me, and even more so for any kind of work within #academia. But I don’t find it easy to explain exactly what bothers me.

An important aspect of it is the «black box» thing. Scientific work should be transparent and reproducible. Output from an #LLM is anything but.

Another thing is watching colleagues get «coding advice» from an LLM for their statistical analyses that I immediately see will not run. Where, say, #lme4 syntax and #lavaan syntax is mixed up.

Third, I’ve seen horrendous examples where students ask LLMs to find research for them, with the LLM «digging up» one fictitious article after another, with fictitious results, sometimes with actual names of actual researchers, delivered with confidence. Admittedly, that was some while ago.
2/3

#academia #education #LLM #generativeAI #AIhype #rstats

Do you do Structural Equation Modeling in #rstats? The main developer of one of the primary packages, #lavaan, is running into trouble securing funding to keep the package going, and has reached out to the community to help support. Donate here: https://lavaan.ugent.be/about/donate.html
lavaan.org - Donate

@avehtari @modrak_m

I really want to believe you because this was my intuition as well. I double checked it with a structural equation model:

- one model where residual covariance is constrained to be 0
- one model where residual covariance is estimated freely

Fit with #lavaan, check the regression parameter estimates...

they are the same.

see here: https://gist.github.com/vankesteren/310ba8ff91149c5d91fdffb1cb42f5d3

Do you mean something else than this?

Double check separate vs. joint model in lavaan

Double check separate vs. joint model in lavaan. GitHub Gist: instantly share code, notes, and snippets.

Gist