Displaying 1 result from an estimated 1 matches for "predgam".
Did you mean:
pre_gam
2006 Feb 13
2
transforming data frame for use with persp
...do I accomplish this?
In this example, I made a set of x and y values to get predictions
from a GAM, then combined them with the predictions into a data
frame. This is the one I'd like to transform as described above:
My.data <- expand.grid(Depth=seq(40,220, 20), Temp=seq(-1, 6, 0.5))
predgam <- predict.gam(dxt.gam, My.data, type="response")
pred.data <- data.frame(My.data, predgam)
pred.data has 150 lines and 3 columns.
Thanks for your help,
Denis Chabot