Method used to consistently scale each data slot in an object with
class "potData".
Usage
# S3 method for potData
scale(x, center = FALSE, scale = FALSE)Arguments
- x
A
potDataobject.- center
Either the logical
FALSEor a numeric value. In the later case,centerwill first be substracted to the data.- scale
Either the logical
FALSEor a numeric value. In the later case,scalethe data witll be divided byscaleafter the substraction ofcenterif required.
Note
The scaling of a potData object can affect the
behaviour of a poisGP object fitted form it. Fit results
and profile-likelihood results can differ from those expected.
Examples
L <- as.potData(Garonne)
L1 <- scale(L, scale = 1000)
