search for: linearpredictor

Displaying 1 result from an estimated 1 matches for "linearpredictor".

2005 Nov 17
1
Predicting and Plotting "hypothetical" values of factors
...In addition: Warning message: # variable 'myfac' is not a factor in: model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) # Isn't there an easier way than this? c1 <- coef(mymod1) myseq <- seq(0,1, length.out=10) newdf <- data.frame(1, myseq) linearPredictor <- as.matrix(newdf) %*% c1 p2 <- 1/ (1 + exp(-linearPredictor)) # But there is a big disaster if you just try the obvious thing # of plotting with # lines(myseq,p2) # The line does not show up where you hope in the plot. # The plot "appears to" have the x-axis on the scale # 1.1 to...