Description Usage Arguments Value Examples
This function calculates de statistics for hypotesys tests considering the following hypotesis:
H_{0}:\text{ } μ \neq μ_{0}
H_{0}:\text{ } \bar{p} \neq p_{0}
H_{0}:\text{ } μ ≤q \text{ or } ≥q μ_{0}
H_{0}:\text{ } \bar{p} ≤q \text{ or } ≥q p_{0}
| 1 2 3 | 
| sample.data | The source  | 
| num.col | Vector of the numeric column numbers. | 
| prop.col | Vector of the binary column numbers. | 
| mu0 | Hypothesized mean. | 
| p0 | Hypothesized proportion. | 
| alpha | Level of significance. | 
| alternative | 
 | 
| labels | Label vector for the outputs. | 
| plot.graph | Plot a confidence intervals for proportions only. Not implemented yet. | 
data.frame containing the following:
The label of the variable/parameter.
Point estimate.
The hypothesized mean/proportion.
Standard error.
Statistics z.
P-value.
Test power, defined as (1 - β).
| 1 2 3 4 5 6 7 8 9 10 11 12 | n=168
set.seed(101)
dados <- data.frame(CONTROLE1=rbinom(n,1,prob = 0.4),
                    CONTROLE2=rbinom(n,1,prob = 0.02),
                    CONTROLE3=rbinom(n,1,prob = 0.1),
                    CONTROLE4=rbinom(n,1,prob = 0.01),
                    CONTROLE5=rbinom(n,1,prob = 0.2),
                    CONTROLE6=rnorm(n,10,3),
                    CONTROLE7=rnorm(n,250,20))
test(sample.data = dados, num.col = 6:7, prop.col = 1:5, alpha = 0.05,
     mu0 = c(10,100),p0=c(0.05,0.05,0.10,0.10,0.1),
     alternative = c(rep(1,5),rep(2,2)))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.