Hello ALL!
I have a problem to plot factor (lets say gender) as a line, or at least both line and point, from ols model:
ols1 <- ols(Y ~ gender, data=dat, x=T, y=T)
plot(ols1, gender=NA, xlab="gender", ylab="Y",
ylim=c(5,30), conf.int=FALSE)

If I convert gender into discrete numeric predictor, and use forceLines=TRUE, plot is not nice and true, since it shows values between 1 and 2.

Thanks!
PM

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to