Learn R Programming

SBCK (version 1.0.0)

PPPLogLinLink: PPPLogLinLink

Description

Log linear link function. See also the PrePostProcessing documentation.

Arguments

Super classes

SBCK::PrePostProcessing -> SBCK::PPPFunctionLink -> PPPLogLinLink

Methods

Inherited methods


Method new()

Create a new PPPLogLinLink object.

Usage

PPPLogLinLink$new(s = 1e-05, cols = NULL, ...)

Arguments

s

The value where the function jump from exp to linear

cols

Columns to apply the link function

...

Others arguments are passed to PrePostProcessing

Returns

A new `PPPLogLinLink` object.


Method clone()

The objects of this class are cloneable with this method.

Usage

PPPLogLinLink$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

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.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab