semPlot
semPlot copied to clipboard
logistic regression plot fails
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
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.