cardiomoon / processR

52 stars 10 forks source link

statisticalDiagram not plotting estimates #9

Open JFormoso opened 3 years ago

JFormoso commented 3 years ago

Hi! I'm using processR for the first time and for some reason I can't make the statisticalDiagram function plot estimates using whatLabel = "est". I'm hoping you can tell me if it is an issue with the function or my code. Thank you! pd. love this package, i hated having to write up the model to use with lavaan::sem.

This is the code:

labels = list(X = "stress", M = "CEFS", Y = "weight",W = "ob")

moderator = list(name = "obesidad", site=list("a")) model = tripleEquation(X = "PSS", M = "EFCAs", Y="peso_modificado",moderator=moderator) cat(model)

fit <- sem(model = model, data = escala1) estimatesTable(fit)

statisticalDiagram(7, labels = labels, fit = fit, whatLabel="est")

mod diagram