appe.glm: C-statistics adjusted for predictor distributions Calculates...

Description Usage Arguments Value

Description

C-statistics adjusted for predictor distributions Calculates adjusted C statistics by predictor distributions for a generalized linear model with binary outcome.

Usage

1
2
3
appe.glm(mdl, dat.train, dat.test, method = "uLSIF", sigma = NULL,
  lambda = NULL, kernel_num = NULL, fold = 5, stabilize = TRUE,
  qstb = 0.025, reps = 2000, conf.level = 0.95)

Arguments

mdl

A glm object describing a prediction model to be evaluated.

dat.train

A dataframe used to construct a prediction model (specified in mdl), corresponding to a training data. Need to include outcome and all predictors.

dat.test

A dataframe corresponding to a validation (testing) data. Need to include outcome and all predictors.

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.

reps

A positive integer to specify bootstrap repetitions. If 0, bootstrap calculations are not performed.

conf.level

A numerical value indicating a confidence level of interval.

Value

matrix


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