ranksProb_compare_plots: Plots to compare ranks probabilities

Description Usage Arguments Details Value Author(s) References Examples

View source: R/ranksProb_compare_plots.R

Description

OPWeight package proposed methods to compute the probabilities of the rank of test given the effect size. This funciton uses the simulation results obtained from the three approahes: 1) simulation, 2) exact formula, and 3) normal approximation to plot the rank probabilities.

Usage

1
ranksProb_compare_plots(m0, effectType = c("binary", "continuous"))

Arguments

m0

number of true null tests

effectType

type of effect sizes; c("continuous", "binary")

Details

To use this function to plot, one needs to load "simu_prob_rank_givenEffect.RDATA" and apply for different m0.

Value

Data A data frame containing seven columns; ranks and null and alternative probabilities of the test from the three approaches

Author(s)

Mohamad S. Hasan, shakilmohamad7@gmail.com

References

Hasan and Schliekelman (2017)

Examples

1
2
3
load(system.file("simulations/results", "simu_prob_rank_givenEffect.RDATA",
                             package = "OPWpaper"), envir = environment())
ranksPlots <- ranksProb_compare_plots(m0 = 90, effectType = "continuous")

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