test1mu {svplots} | R Documentation |
Tests the hypothesis over population mean based on one sample by Sv-plot2.
Description
Decision on hypothesis testing over single mean is made by graphing sample and population Sv-plot2s along with the threshold line. If the intersection point of two Sv-plot2s locates on or above the threshold line, the null hypothesis is rejected at specified significance level, otherwise, failed to reject.
Usage
test1mu(X,mu0=3.5,alpha=0.05,unkwnsigma=TRUE,sigma=NULL,xlab="x",
title="Single mean: Hypothesis testing by Sv-plot2",
samcol="grey5",popcol="grey45",thrcol="black",...)
Arguments
X |
an |
mu0 |
hypothesized population mean, mu0=3.5 by default. |
alpha |
significance level, alpha=0.05 by default. |
unkwnsigma |
population standard deviation is unknown, TRUE by default. |
sigma |
population standard deviation, NULL by default. |
xlab |
|
title |
title of the plot, Single mean: Hypothesis testing by Sv-plot2 by default. |
samcol |
sample Sv-plot2 color, grey5 by default. |
popcol |
sample Sv-plot2 color, grey45 by default. |
thrcol |
threshold color, black by default. |
... |
other graphical parameters. |
Value
Decision on testing hypotheses over single population mean by Sv-plot2.
References
Wijesuriya, U. A. (2020). Sv-plots for identifying characteristics of the distribution and testing hypotheses. Communications in Statistics-Simulation and Computation, doi: 10.1080/03610918.2020.1851716.
Examples
set.seed(5)
X=matrix(rnorm(20,mean=3,sd=2))
test1mu(X,mu0=3.5,alpha=0.05,unkwnsigma=TRUE,sigma=NULL,xlab="x",
title="Single mean: Hypothesis testing by Sv-plot2",
samcol="grey5",popcol="grey45",thrcol="black")