Closed DanielReedOcean closed 7 years ago
Daniel,
Thanks for bringing this up...it didn't really rise high on my radar since you can always just request the specific plot you want with
visreg(gam.res, "hp")
But still, I agree, visreg
was not doing the correct thing here -- fixed now, though.
First of all, kudos on an awesome package! I'm having a bit of a problem when specifying the number of knots in a smoother with a variable and then plotting the results with
visreg
. For example, the following seems to thinkkval
, the variable for the number of knots used by the smoother, is a predictor and creates a plot for it:If I hardcode the number of knots in the formula, this doesn't happen even though the models are essentially exactly the same.