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
potData
object.- center
Either the logical
FALSE
or a numeric value. In the later case,center
will first be substracted to the data.- scale
Either the logical
FALSE
or a numeric value. In the later case,scale
the data witll be divided byscale
after the substraction ofcenter
if 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)