MTPS-internal: Internal functions

MTPS-internalR Documentation

Internal functions

Description

Internal functions for MTPS package

Usage

trapezoid(FPR,TPR,cc)

check.match(family, FUN)

createFolds(y, k = 10, list = TRUE, returnTrain = FALSE)

cv.glmnet2(xx, yy, foldid, alpha=seq(0,10,by=2)/10,
lambda=exp(seq(log(10^-8), log(5), length.out=100)),...)

cv.multiFit(xmat, ymat, nfold=5, method, family=family)

max_finite(xx)

min_finite(xx)

resid.bin(ymat, yhat, xmat=NULL, type=c("deviance", "pearson", "raw"), resid.std=F)

rs.multiFit(yhat, ymat, xmat=NULL, family,
            resid.type=c("deviance", "pearson", "raw"), resid.std=F,
            method)

Details

These are not intended for use by users. check.match check whether a given method matches with the response family. createFolds the createFolds function is cited from the 'caret' library, which is a large r package for machine learning. To improve the independency of our package we copied this single function instead of loading the whole caret package. It is safely to ignore the warning if you have loaded the caret the package. cv.multiFit used to fit models in cross-validation stacking rs.multiFit used to fit models in residual stacking resid.bin calculate residual of different types


MTPS documentation built on July 9, 2023, 7:46 p.m.