search for: pred_out

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

2006 Dec 27
1
Question about predict function
...n. You feed the predict.gam function a data frame, telling it what you want. Let's start with the predict.gam function. Are you supposed to be able to look up how to use it? E.g., what goes into the various columns of the data frame? I do have a working function call for predict. It says: pred_out <- predict (mod, data.frame (x = x), type = "response") (mod is the model) Now, if you tell me that x = x, I will believe you. But what is meant by "data.frame (x = x)", I know not. Or would it better to call the class, names, and str functions, using some well chosen ob...