SachaEpskamp / semPlot

Path diagrams and visual analysis of various SEM packages' output
GNU General Public License v2.0
61 stars 20 forks source link

logistic regression plot fails #43

Open fkgruber opened 1 year ago

fkgruber commented 1 year ago

Hi I was trying to plot a logistic regression model and it gives an error:

X <- rnorm(100)
Y <- rnorm(100)
b=rbinom(100,1,0.5)
DF <- data.frame(X, Y,b)
res=glm(b~X*Y,data=DF,family=binomial)
semPaths(res)

gives

Error in eval(family$initialize) : y values must be 0 <= y <= 1

fkgruber commented 1 year ago

it seems the error is coming from the standardize function. There is conflict between the arm package and the rockchalk. I think you want to use the arm version.