pred_XGBoost {PoweREST}R Documentation

Prediction results from XGBoost

Description

This function takes the result from 'fit_XGBoost' and make predictions.

Usage

pred_XGBoost(x,n.grid=30,xlim,ylim,replicates)

Arguments

x

A object of class 'xgb.Booster'.

n.grid

The grid note number within 'xlim' and 'ylim', default=30.

xlim

The range of the absolute value of avg_log2FC used for prediction.

ylim

The range of the avg_pct used for prediction.

replicates

The replicates number.

Value

The power estimations from XGBoost.

Author(s)

Lan Shui lshui@mdanderson.org

Examples

data(power_example)
# Fit the local power surface of avg_log2FC_abs between 1 and 2
avg_log2FC_abs_1_2<-dplyr::filter(power_example,avg_log2FC_abs>1 & avg_log2FC_abs<2)
# Fit the model
bst<-fit_XGBoost(power_example$power,avg_log2FC=power_example$avg_log2FC_abs,
avg_PCT=power_example$mean_pct,replicates=power_example$sample_size)
pred<-pred_XGBoost(bst,n.grid=30,xlim=c(0,1.5),ylim=c(0,0.1),replicates=3)


[Package PoweREST version 0.1.0 Index]