densratio.appe: A wrapper function A wrapper function to use "densratio"...

Description Usage Arguments Value

Description

A wrapper function A wrapper function to use "densratio" function from the densratio package.

Usage

1
2
3
densratio.appe(xtrain, xtest, method = "uLSIF", sigma = NULL,
  lambda = NULL, kernel_num = NULL, fold = 5, stabilize = TRUE,
  qstb = 0.025)

Arguments

xtrain

A dataframe used to construct a prediction model.

xtest

A dataframe corresponding to a validation (testing) data.

method

uLSIF or KLIEP. Same as the argument in densratio function from densratio package.

sigma

A positive numeric vector corresponding to candidate values of a bandwidth for Gaussian kernel. Same as the argument in densratio function from densratio package.

lambda

A positive numeric vector corresponding to candidate values of a regularization parameter. Same as the argument in densratio function from densratio package.

kernel_num

A positive integer corresponding to number of kernels. Same as the argument in densratio function from densratio package.

fold

A positive integer corresponding to a number of the folds of cross-validation in the KLIEP method. Same as the argument in densratio function from densratio package.

stabilize

A logical value as to whether tail weight stabilization is performed or not. If TRUE, both tails of the estimated density ratio distribution are replaced by the constant value which is specified at qstb option.

qstb

A positive numerical value less than 1 to control the degree of weight stabilization. Default value is 0.025, indicating estimated density ratio values less than the 2.5 percentile and more than the 97.5 percentile are set to 2.5 percentile and 97.5 percentile, respectively.

Value

numerical vector


eisuke-inoue/APPEstimation documentation built on May 19, 2019, 2:55 a.m.