Alternate hypothesis value of p for one-sample cases.
Second sample value of p for two-sample cases.
p2
Second sample value of p.
p.hat
Observed value of p.
n
Number of observations (for example, number of coins tossed).
xlim, ylim, xlab
Standard xyplot arguments...
type
"hypothesis" for a Hypothesis Test graph, or "confidence" for a
Confidence Interval graph.
..., alpha.left, alpha.right
Additional arguments forwarded to NTplot.
number.vars
Number of variables. 1 for a one-sample test, 2 for two-sample tests
and paired tests.
Details
This is a wrapper function for the plots in NTplot.
Value
"trellis" object.
Author(s)
Richard M. Heiberger (rmh@temple.edu)
Examples
NTplot(distribution.name="binomial", n=20, ylim=c(0,4.2), p1=.8)
NTplot(distribution.name="binomial", n=20, type="confidence", ylim=c(0,4.2))
## Not run:
NTplot(distribution.name="binomial", n=20, zaxis=TRUE, z1axis=TRUE,
p1=.8678, ylim=c(0, 5.2))
NTplot(p0=.4, p.hat=.65, p1=.7, distribution.name="binomial", n=15)
NTplot(p.hat=.65, distribution.name="binomial", n=15, type="confidence")
## End(Not run)
## Not run: ## these are interactive and won't work in R CMD check
NTplot(distribution.name="binomial", n=20, ylim=c(0,4.2), p1=.8, shiny=TRUE)
NTplot(p0=.4, p.hat=.65, p1=.7, distribution.name="binomial", n=15, shiny=TRUE)
NTplot(p.hat=.65, distribution.name="binomial", n=15, type="confidence", shiny=TRUE)
## End(Not run)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS
Attaching package: 'TH.data'
The following object is masked from 'package:MASS':
geyser
Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HH/normalApproxBinomial.Rd_%03d_medium.png", width=480, height=480)
> ### Name: normalApproxBinomial
> ### Title: Plots to illustrate Normal Approximation to the
> ### Binomial-hypothesis tests or confidence intervals.
> ### Aliases: normalApproxBinomial
> ### Keywords: hplot
>
> ### ** Examples
>
> NTplot(distribution.name="binomial", n=20, ylim=c(0,4.2), p1=.8)
> NTplot(distribution.name="binomial", n=20, type="confidence", ylim=c(0,4.2))
> ## Not run:
> ##D NTplot(distribution.name="binomial", n=20, zaxis=TRUE, z1axis=TRUE,
> ##D p1=.8678, ylim=c(0, 5.2))
> ##D NTplot(p0=.4, p.hat=.65, p1=.7, distribution.name="binomial", n=15)
> ##D NTplot(p.hat=.65, distribution.name="binomial", n=15, type="confidence")
> ## End(Not run)
> ## Not run:
> ##D ## these are interactive and won't work in R CMD check
> ##D NTplot(distribution.name="binomial", n=20, ylim=c(0,4.2), p1=.8, shiny=TRUE)
> ##D NTplot(p0=.4, p.hat=.65, p1=.7, distribution.name="binomial", n=15, shiny=TRUE)
> ##D NTplot(p.hat=.65, distribution.name="binomial", n=15, type="confidence", shiny=TRUE)
> ## End(Not run)
>
>
>
>
>
> dev.off()
null device
1
>