Skip to contents

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 by scale after the substraction of center if required.

Value

An object with class "potData" with the same structure a x but with the data rescaled.

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)