Skip to content

predict.smooth.Pspline function not found

4 messages · zoe richards, David Winsemius, Brian Ripley

#
On Feb 27, 2013, at 4:29 PM, zoe richards wrote:

            
Where are you getting the "Pspline" package. I only see a "pspline" package on CRAN. (I'm surprised you did not get an error when trying to load with that spelling, so maybe you do have such a package?) My guess is that you failed to load the package, either through misspelling of not knowing that package needed to be loaded. One of the reasons that the Posing Guide requests that all questions be accompanied by the output of sessionInfo() is to cover cases like this.
#
On Feb 27, 2013, at 6:18 PM, David Winsemius wrote:

            
In a private message Zoe proved to me that she had loaded the `pspline` package. (You should not reply privately, Zoe.) It only remained to do this (after loading the package):
Error: could not find function "predict.smooth.Pspline"
num [1:20, 1] 0.004091 0.000253 -0.000499 0.001918 0.007715 ...


So in trying to go around the usual dispatch of functions by class you were creating unnecessary confusion. I don't know if maybe the spelling of the class with a period could be the root of the confusion?

Go Blue.

--
David Winsemius
Alameda, CA, USA
#
On 28/02/2013 00:29, zoe richards wrote:
You should not be calling a method directly.  Call predict().  If you 
look at the help in ?predict.smooth.Pspline, it says

Usage:

      ## S3 method for class 'smooth.Pspline'
      predict(object, xarg, nderiv = 0, ...)

Arguments:

   object: a fitted ?smooth.Pspline? object.

so you needed to follow the help ....

The maintainer of pspline.