PPPLogLinLink | R Documentation |
Log linear link function. See also the PrePostProcessing documentation.
Log linear link function. The transform is log(x) if 0 < x < 1, else x -1, and the inverse transform exp(x) if x < 0, else x + 1.
SBCK::PrePostProcessing
-> SBCK::PPPFunctionLink
-> PPPLogLinLink
new()
Create a new PPPLogLinLink object.
PPPLogLinLink$new(s = 1e-05, cols = NULL, ...)
s
The value where the function jump from exp to linear
cols
Columns to apply the link function
...
Others arguments are passed to PrePostProcessing
A new 'PPPLogLinLink' object.
clone()
The objects of this class are cloneable with this method.
PPPLogLinLink$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 = PPPLogLinLink$new( bc_method = CDFt , cols = 2 ,
pipe = list(PPPSSR),
pipe_kwargs = list(list(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.