prob_weight_plots: Plot ranks' probabilities and the corresponding weights

Description Usage Arguments Details Value Author(s) References Examples

View source: R/prob_weight_plots.R

Description

OPWeight package proposed a method to compute the ranks probabilities of the covariates and the corresponding weights given the test-effect size. This funciton uses the simulation results of the probabilities and the weights to plot.

Usage

1
prob_weight_plots(ey_index, null_index, m, ey, null, prob, weight)

Arguments

ey_index

Integer vector, column numbers of the null proportions of a specific effect

null_index

Integer vector, column numbers of the covariate-effects of a specific null proportion

m

Integer, total number of tests

ey

Numeric, mean covariate-effect size used in ey_index

null

Numeric, proportion of the null tests used in null_index

prob

Numerics data of the ranks probabilities

weight

Numeric data of the weights

Details

To use this function, one needs to load two data sets generated earlier 1) ranksProb_byEffect_m10000.csv, and 2) Weight_byEffect_cont_m10000.csv then use the function.

Value

Figure of four plots

Author(s)

Mohamad S. Hasan, shakilmohamad7@gmail.com

References

Hasan and Schliekelman (2017)

Examples

1
2
3
4
5
6
# ranksProb <- read.csv(system.file("simulations/results/ranksProb_byEffect_m10000.csv",
#                                   package = "OPWpaper"), h = TRUE)
# ranksWeight_cont <- read.csv(system.file("simulations/results/Weight_byEffect_cont_m10000.csv",
#                                          package = "OPWpaper"), h = TRUE)
# prob_weight_plots(ey_index = c(7, 17, 27, 37), null_index = c(14, 17, 19),
# m = 10000, ey = 2, null = 50, prob = ranksProb, weight = ranksWeight_cont)

mshasan/OPWpaper1 documentation built on Feb. 22, 2021, 10:22 a.m.