Displaying 2 results from an estimated 2 matches for "vlegels".
2010 Aug 30
1
'mgcv' package, problem with predicting binomial (logit) data
...TRUE, type="response")
I1<-order(age_male)
plot(age_male[I1], test2.pred$fit[I1],lty=1)
This last plot, of the predictions, is not what I expect. It?s just a random
scatterplot, not what I would expect from the smoother plot. Does anybody
know what I did wrong?
Thanks in advance,
Jef Vlegels
Jef Vlegels
Ghent University - Department of Sociology
Korte Meer 3, B-9000 Gent, Belgium
Tel:? 09 264 8343
www.psw.UGent.be/sociologie
2010 Dec 03
1
mgcv package plot superimposing smoothers
...irst one. Normally I use 'lines' to
plot just the line from the second plot in the first plot, but this doesn't
seem to work with the plot.gam function.
Does someone have a solution to plot these two smoothers in one graph, each
with a different color/line type?
Thanks in advance,
Jef Vlegels