Description Usage Arguments Details Value Author(s) References Examples
View source: R/prob_weight_plots.R
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.
1 | prob_weight_plots(ey_index, null_index, m, ey, null, prob, weight)
|
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 |
null |
Numeric, proportion of the null tests used in |
prob |
Numerics data of the ranks probabilities |
weight |
Numeric data of the weights |
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.
Figure of four plots
Mohamad S. Hasan, shakilmohamad7@gmail.com
Hasan and Schliekelman (2017)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.