semPlot icon indicating copy to clipboard operation
semPlot copied to clipboard

logistic regression plot fails

Open fkgruber opened this issue 2 years ago • 1 comments

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 avatar Feb 10 '23 22:02 fkgruber

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.

fkgruber avatar Feb 10 '23 22:02 fkgruber