PPPSquareLink | R Documentation |
Square link function. See also the PrePostProcessing documentation.
Square link function. The transform is x^2, and the sign(x)*sqrt(abs(x)) its inverse.
SBCK::PrePostProcessing
-> SBCK::PPPFunctionLink
-> PPPSquareLink
new()
Create a new PPPSquareLink object.
PPPSquareLink$new(cols = NULL, ...)
cols
Columns to apply the link function
...
Others arguments are passed to PrePostProcessing
A new 'PPPSquareLink' object.
clone()
The objects of this class are cloneable with this method.
PPPSquareLink$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Start with data
XY = SBCK::dataset_like_tas_pr(2000)
X0 = XY$X0
X1 = XY$X1
Y0 = XY$Y0
## Define the PPP method
ppp = PPPSquareLink$new( bc_method = CDFt , cols = 2 )
## And now the correction
## Bias correction
ppp$fit(Y0,X0,X1)
Z = ppp$predict(X1,X0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.