samplesize.plot: Plots by mu1

Description Usage Arguments Details Examples

Description

Generate the comparison plots using GLM method and Wilcoxon Rank Sum Test with different mu1.

Usage

1
samplesize.plot(SS.matrix,link.type)

Arguments

link.type

the type of link used in the beta regression(or Wilcoxon Rank Sum Test). You can choose one or more of the following: "logit", "probit", "cloglog", "cauchit", "log", "loglog", "wilcoxon", "all"

SS.matrix

the matrix obtained by the function sample.size.(the formula was described as the output formula in the function sample.size)

Details

samplesize.plot() returns a series of plots equal to the number of mu1 used in the procedure. Y-axis denotes minimum sample size and X-axis denotes minimum power.

Examples

1
2
3
4
5
6
SSmat <- sample.size(mu0=0.56, sd0=0.255, mu1.start = 0.60, mu1.end = 0.70, mu1.by = 0.05, 
power.start = 0.7, power.end = 0.9, power.by = 0.1, link.type = "all")
samplesize.plot(SSmat, "all")
SSmat2 <- sample.size(mu0=0.56, sd0=0.255, mu1.start = 0.60, mu1.end = 0.70, mu1.by = 0.05, 
power.start = 0.7, power.end = 0.9, power.by = 0.1, link.type = c("logit","loglog","log"))
samplesize.plot(SSmat2,link.type = c("logit","loglog","log"))

CastleLi/BetaPSS documentation built on May 15, 2019, 10:34 p.m.