diff --git a/DESCRIPTION b/DESCRIPTION
index c3fb716..280d59e 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: inferr
Type: Package
Title: Inferential Statistics
-Version: 0.3.1
+Version: 0.3.1.9000
Authors@R: person("Aravind", "Hebbali", email = "hebbali.aravind@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9220-9669"))
Description: Select set of parametric and non-parametric statistical tests. 'inferr' builds upon the solid set of
diff --git a/NEWS.md b/NEWS.md
index edf5ac4..4ee3644 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,4 +1,6 @@
-# inferr 0.3.0.1
+# inferr 0.3.1.9000
+
+# inferr 0.3.1
This is a patch release to fix error on R-devel on Debian and Fedora.
diff --git a/README.Rmd b/README.Rmd
index 4c04d58..c96ce25 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -109,3 +109,7 @@ infer_mcnemar_test(hb, himath, hiread)
If you encounter a bug, please file a minimal reproducible example using
[reprex](https://reprex.tidyverse.org/index.html) on github. For questions and
clarifications, use [StackOverflow](https://stackoverflow.com/).
+
+## Code of Conduct
+
+Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
diff --git a/README.md b/README.md
index 8457a90..1603e2e 100644
--- a/README.md
+++ b/README.md
@@ -215,3 +215,9 @@ If you encounter a bug, please file a minimal reproducible example using
[reprex](https://reprex.tidyverse.org/index.html) on github. For
questions and clarifications, use
[StackOverflow](https://stackoverflow.com/).
+
+## Code of Conduct
+
+Please note that this project is released with a [Contributor Code of
+Conduct](CONDUCT.md). By participating in this project you agree to
+abide by its terms.
diff --git a/docs/404.html b/docs/404.html
index edae1f1..d2cad67 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -71,7 +71,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html
index 7860797..53a31aa 100644
--- a/docs/CONDUCT.html
+++ b/docs/CONDUCT.html
@@ -71,7 +71,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index 2ffe05c..f9eacef 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -71,7 +71,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 8ee38e9..cb6ebe6 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -71,7 +71,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
diff --git a/docs/articles/intro.html b/docs/articles/intro.html
index 909adfb..d66d869 100644
--- a/docs/articles/intro.html
+++ b/docs/articles/intro.html
@@ -31,7 +31,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -85,12 +85,12 @@
-
+
## One-Sample Statistics
## ---------------------------------------------------------------------------------
## Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -147,7 +147,7 @@
##
## Ha: mean < 50 Ha: mean ~= 50 Ha: mean > 50
## t = 4.141 t = 4.141 t = 4.141
-## P < t = 1.0000 P > |t| = 0.0001 P > t = 0.0000
+## P < t = 0.99997 P > |t| = 0.00005 P > t = 0.00003
@@ -160,7 +160,7 @@
Using the hsb data, test whether the mean of read is equal to the mean of write.
+
infer_ts_paired_ttest ( hsb ,
read ,
write , alternative
= 'less' )
## Paired Samples Statistics
## ----------------------------------------------------------------------------
## Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -189,7 +189,7 @@
## ----------------------------------------
+
infer_ts_paired_ttest ( hsb ,
read ,
write , alternative
= 'all' )
## Paired Samples Statistics
## ----------------------------------------------------------------------------
## Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -226,7 +226,7 @@
Example
Using the hsb data, test whether the mean for write is the same for males and females.
+infer_ts_ind_ttest ( hsb , female , write , alternative = 'all' )
## Group Statistics
## -----------------------------------------------------------------------------
## Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -275,7 +275,7 @@
Using hsb data, test whether the proportion of females is 50%.
+infer_os_prop_test ( hsb , female , prob = 0.5 )
## Test Statistics
## -------------------------
## Sample Size 200
@@ -293,7 +293,7 @@
Using Calculator
+infer_os_prop_test ( 200 , prob = 0.5 , phat = 0.3 )
## Test Statistics
## --------------------------
## Sample Size 200
@@ -323,7 +323,7 @@
Using the treatment data, test equality of proportion of two treatments
# Using Variables
-ifr_ts_prop_test ( treatment , treatment1 , treatment2 , alternative = 'all' )
+infer_ts_prop_test ( treatment , treatment1 , treatment2 , alternative = 'all' )
## Test Statistics
## -----------------------------
## Total Observations 100
@@ -338,7 +338,7 @@
Using the treatment2 data, test whether outcome has same proportion for male and female
# Using Grouping Variable
-ifr_ts_prop_group ( treatment2 , outcome , female , alternative = 'all' )
+infer_ts_prop_group ( treatment2 , outcome , female , alternative = 'all' )
## Test Statistics
## -----------------------------
## Total Observations 200
@@ -353,7 +353,7 @@
Test whether the same proportion of people from two batches will pass a review exam for a training program. In the first batch of 30 participants, 30% passed the review, whereas in the second batch of 25 participants, 50% passed the review.
# Calculator
-ifr_ts_prop_calc ( n1 = 30 , n2 = 25 , p1 = 0.3 , p2 = 0.5 , alternative = 'all' )
+infer_ts_prop_calc ( n1 = 30 , n2 = 25 , p1 = 0.3 , p2 = 0.5 , alternative = 'all' )
## Test Statistics
## ------------------------------
## Total Observations 55
@@ -379,7 +379,7 @@
Using the mtcars data, compare the standard deviation of mpg to a hypothesized value.
+infer_os_var_test ( mtcars , mpg , 0.3 , alternative = 'less' )
## One-Sample Statistics
## -----------------------------------------------------------------------------
## Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -400,7 +400,7 @@
## ----------------------------------------
# Test all alternatives
-ifr_os_var_test ( mtcars , mpg , 0.3 , alternative = 'all' )
+infer_os_var_test ( mtcars , mpg , 0.3 , alternative = 'all' )
## One-Sample Statistics
## -----------------------------------------------------------------------------
## Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
@@ -428,7 +428,7 @@
Using the mtcars data, compare the standard deviation in miles per gallon for automatic and manual vehicles.
# Using Grouping Variable
-ifr_ts_var_test ( hsb , read , group_var = female , alternative = 'all' )
+infer_ts_var_test ( hsb , read , group_var = female , alternative = 'all' )
## Variance Ratio Test
## --------------------------------------------------
## Group Obs Mean Std. Err. Std. Dev.
@@ -461,7 +461,7 @@
Using the hsb data, compare the standard deviation of reading and writing scores.
+infer_ts_var_test ( hsb , read , write , alternative = 'all' )
## Variance Ratio Test
## --------------------------------------------------
## Group Obs Mean Std. Err. Std. Dev.
@@ -500,7 +500,7 @@
Using the hsb data, test whether the proportion of females and males are equal.
+infer_binom_test ( hsb , female , prob = 0.5 )
## Binomial Test
## ---------------------------------------
## Group N Obs. Prop Exp. Prop
@@ -522,7 +522,7 @@
Using Calculator
+infer_binom_calc ( 32 , 16 , prob = 0.5 )
## Binomial Test
## --------------------------------------
## Group N Obs. Prop Exp. Prop
@@ -551,7 +551,7 @@
Examples
Using the hsb data, test whether the mean of write differs between the three program types.
+infer_oneway_anova ( hsb , write , prog )
## ANOVA
## ----------------------------------------------------------------------
## Sum of
@@ -585,7 +585,7 @@
Using the hsb data, test whether the observed proportions for race differs significantly from the hypothesized proportions.
+infer_chisq_gof_test ( hsb , race , c ( 20 , 20 , 20 , 140 ) )
## Test Statistics
## -----------------------
## Chi-Square 5.0286
@@ -607,7 +607,7 @@
Continuity Correction
# using continuity correction
-ifr_chisq_gof_test ( hsb , race , c ( 20 , 20 , 20 , 140 ) , correct = TRUE )
+infer_chisq_gof_test ( hsb , race , c ( 20 , 20 , 20 , 140 ) , correct = TRUE )
## Test Statistics
## -----------------------
## Chi-Square 4.3821
@@ -636,7 +636,7 @@
Examples
Using the hsb data, test if there is a relationship between the type of school attended (schtyp) and students’ gender (female).
+infer_chisq_assoc_test ( hsb , female , schtyp )
## Chi Square Statistics
##
## Statistics DF Value Prob
@@ -651,7 +651,7 @@
## ----------------------------------------------------
Using the hsb data, test if there is a relationship between the type of school attended (schtyp) and students’ socio economic status (ses).
+infer_chisq_assoc_test ( hsb , schtyp , ses )
## Chi Square Statistics
##
## Statistics DF Value Prob
@@ -677,7 +677,7 @@
Using the hsb data, test whether variance in reading score is same across race.
+infer_levene_test ( hsb , read , group_var = race )
## Summary Statistics
## Levels Frequency Mean Std. Dev
## -----------------------------------------
@@ -704,7 +704,7 @@
Using the hsb data, test whether variance is equal for reading, writing and social studies scores.
+infer_levene_test ( hsb , read , write , socst )
## Summary Statistics
## Levels Frequency Mean Std. Dev
## -----------------------------------------
@@ -735,7 +735,7 @@
Example
The exam data set contains scores of 15 students for three exams (exam1, exam2, exam3). Test if three exams are equally difficult.
+infer_cochran_qtest ( exam , exam1 , exam2 , exam3 )
## Test Statistics
## ----------------------
## N 15
@@ -762,7 +762,7 @@
hb <- hsb
hb $ himath <- ifelse ( hsb $ math > 60 , 1 , 0 )
hb $ hiread <- ifelse ( hsb $ read > 60 , 1 , 0 )
-ifr_mcnemar_test ( hb , himath , hiread )
+infer_mcnemar_test ( hb , himath , hiread )
## Controls
## ---------------------------------
## Cases 0 1 Total
@@ -799,7 +799,7 @@
## Controls
## ---------------------------------
## Cases 0 1 Total
@@ -835,7 +835,7 @@
## ----------------------
Perform the above test using matrix as input.
+infer_mcnemar_test ( matrix ( c ( 135 , 18 , 21 , 26 ) , nrow = 2 ) )
## Controls
## ---------------------------------
## Cases 0 1 Total
@@ -881,7 +881,7 @@
We will use runs test to check regression residuals for serial correlation.
+infer_runs_test ( hsb , read )
## Runs Test
## Total Cases: 200
## Test Value : 50
@@ -894,7 +894,7 @@
## p-value: 0.3956945
# drop values equal to threshold
-ifr_runs_test ( hsb , read , drop = TRUE )
+infer_runs_test ( hsb , read , drop = TRUE )
## Runs Test
## Total Cases: 200
## Test Value : 50
@@ -907,7 +907,7 @@
## p-value: 0.7307676
# recode data in binary format
-ifr_runs_test ( hsb , read , split = TRUE )
+infer_runs_test ( hsb , read , split = TRUE )
## Runs Test
## Total Cases: 200
## Test Value : 50
@@ -920,7 +920,7 @@
## p-value: 0.3956945
+infer_runs_test ( hsb , read , mean = TRUE )
## Runs Test
## Total Cases: 200
## Test Value : 52.23
@@ -933,7 +933,7 @@
## p-value: 0.4042329
# threshold to be used for counting runs
-ifr_runs_test ( hsb , read , threshold = 0 )
+infer_runs_test ( hsb , read , threshold = 0 )
## Runs Test
## Total Cases: 200
## Test Value : 0
@@ -945,15 +945,6 @@
## z Statistic: NaN
## p-value: NaN
-
-
-
- Credits
-
The examples and the data set used in the vignette are borrowed from the below listed sources:
-
diff --git a/docs/articles/intro_files/header-attrs-2.8/header-attrs.js b/docs/articles/intro_files/header-attrs-2.8/header-attrs.js
new file mode 100644
index 0000000..dd57d92
--- /dev/null
+++ b/docs/articles/intro_files/header-attrs-2.8/header-attrs.js
@@ -0,0 +1,12 @@
+// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
+// be compatible with the behavior of Pandoc < 2.8).
+document.addEventListener('DOMContentLoaded', function(e) {
+ var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
+ var i, h, a;
+ for (i = 0; i < hs.length; i++) {
+ h = hs[i];
+ if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
+ a = h.attributes;
+ while (a.length > 0) h.removeAttribute(a[0].name);
+ }
+});
diff --git a/docs/authors.html b/docs/authors.html
index 2de6996..a6796dd 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -71,7 +71,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/index.html b/docs/index.html
index 8f8cb69..04c795a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -5,20 +5,55 @@
-Inferential Statistics • inferr
+inferr • Tools for Inferential Statistics
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
@@ -33,7 +68,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/news/index.html b/docs/news/index.html
index baa1a45..1ff4c3a 100644
--- a/docs/news/index.html
+++ b/docs/news/index.html
@@ -71,7 +71,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -132,32 +132,16 @@ Changelog
Source: NEWS.md
-
-
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 2bcff44..73ede25 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -71,7 +71,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/reference/infer_binom_calc.html b/docs/reference/infer_binom_calc.html
index 75f2328..ce7eb6d 100644
--- a/docs/reference/infer_binom_calc.html
+++ b/docs/reference/infer_binom_calc.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,9 +140,9 @@
Binomial Test
categorical dependent variable significantly differs from a hypothesized value.
- infer_binom_calc (n , success , prob = 0.5 , ... )
+ infer_binom_calc ( n , success , prob = 0.5 , ... )
-infer_binom_test (data , variable , prob = 0.5 )
+infer_binom_test ( data , variable , prob = 0.5 )
Arguments
@@ -175,8 +175,8 @@ Arg
Value
- binom_test
returns an object of class "binom_test"
.
-An object of class "binom_test"
is a list containing the
+
infer_binom_test
returns an object of class "infer_binom_test"
.
+An object of class "infer_binom_test"
is a list containing the
following components:
exp_k expected number of successes
exp_p expected probability of success
@@ -201,40 +201,44 @@ See a
Examples
- # using calculator
-infer_binom_calc (32 , 13 , prob = 0.5 )
#> Binomial Test
-#> --------------------------------------
-#> Group N Obs. Prop Exp. Prop
-#> --------------------------------------
-#> 0 19 0.59375 0.500
-#> 1 13 0.40625 0.500
-#> --------------------------------------
-#>
-#>
-#> Test Summary
-#> --------------------------------------------
-#> Tail Prob p-value
-#> --------------------------------------------
-#> Lower Pr(k <= 13) 0.188543
-#> Upper Pr(k >= 13) 0.892336
-#> --------------------------------------------
-# using data set
-infer_binom_test (hsb , female , prob = 0.5 )
#> Binomial Test
-#> ---------------------------------------
-#> Group N Obs. Prop Exp. Prop
-#> ---------------------------------------
-#> 0 91 0.455 0.500
-#> 1 109 0.545 0.500
-#> ---------------------------------------
-#>
-#>
-#> Test Summary
-#> ----------------------------------------------
-#> Tail Prob p-value
-#> ----------------------------------------------
-#> Lower Pr(k <= 109) 0.910518
-#> Upper Pr(k >= 109) 0.114623
-#> ----------------------------------------------
+ # using calculator
+infer_binom_calc ( 32 , 13 , prob = 0.5 )
+#> Binomial Test
+#> --------------------------------------
+#> Group N Obs. Prop Exp. Prop
+#> --------------------------------------
+#> 0 19 0.59375 0.500
+#> 1 13 0.40625 0.500
+#> --------------------------------------
+#>
+#>
+#> Test Summary
+#> --------------------------------------------
+#> Tail Prob p-value
+#> --------------------------------------------
+#> Lower Pr(k <= 13) 0.188543
+#> Upper Pr(k >= 13) 0.892336
+#> --------------------------------------------
+
+# using data set
+infer_binom_test ( hsb , female , prob = 0.5 )
+#> Binomial Test
+#> ---------------------------------------
+#> Group N Obs. Prop Exp. Prop
+#> ---------------------------------------
+#> 0 91 0.455 0.500
+#> 1 109 0.545 0.500
+#> ---------------------------------------
+#>
+#>
+#> Test Summary
+#> ----------------------------------------------
+#> Tail Prob p-value
+#> ----------------------------------------------
+#> Lower Pr(k <= 109) 0.910518
+#> Upper Pr(k >= 109) 0.114623
+#> ----------------------------------------------
+
diff --git a/docs/reference/infer_chisq_assoc_test.html b/docs/reference/infer_chisq_assoc_test.html
index f33eadf..83f0b0e 100644
--- a/docs/reference/infer_chisq_assoc_test.html
+++ b/docs/reference/infer_chisq_assoc_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,7 +140,7 @@
Chi Square Test of Association
relationship between two categorical variables.
- infer_chisq_assoc_test (data , x , y )
+ infer_chisq_assoc_test ( data , x , y )
Arguments
@@ -194,28 +194,32 @@ See a
Examples
- infer_chisq_assoc_test (hsb , female , schtyp )
#> Chi Square Statistics
-#>
-#> Statistics DF Value Prob
-#> ----------------------------------------------------
-#> Chi-Square 1 0.0470 0.8284
-#> Likelihood Ratio Chi-Square 1 0.0471 0.8282
-#> Continuity Adj. Chi-Square 1 0.0005 0.9822
-#> Mantel-Haenszel Chi-Square 1 0.0468 0.8287
-#> Phi Coefficient 0.0153
-#> Contingency Coefficient 0.0153
-#> Cramer's V 0.0153
-#> ----------------------------------------------------
-infer_chisq_assoc_test (hsb , female , ses )
#> Chi Square Statistics
-#>
-#> Statistics DF Value Prob
-#> ----------------------------------------------------
-#> Chi-Square 2 4.5765 0.1014
-#> Likelihood Ratio Chi-Square 2 4.6789 0.0964
-#> Phi Coefficient 0.1513
-#> Contingency Coefficient 0.1496
-#> Cramer's V 0.1513
-#> ----------------------------------------------------
+ infer_chisq_assoc_test ( hsb , female , schtyp )
+#> Chi Square Statistics
+#>
+#> Statistics DF Value Prob
+#> ----------------------------------------------------
+#> Chi-Square 1 0.0470 0.8284
+#> Likelihood Ratio Chi-Square 1 0.0471 0.8282
+#> Continuity Adj. Chi-Square 1 0.0005 0.9822
+#> Mantel-Haenszel Chi-Square 1 0.0468 0.8287
+#> Phi Coefficient 0.0153
+#> Contingency Coefficient 0.0153
+#> Cramer's V 0.0153
+#> ----------------------------------------------------
+
+infer_chisq_assoc_test ( hsb , female , ses )
+#> Chi Square Statistics
+#>
+#> Statistics DF Value Prob
+#> ----------------------------------------------------
+#> Chi-Square 2 4.5765 0.1014
+#> Likelihood Ratio Chi-Square 2 4.6789 0.0964
+#> Phi Coefficient 0.1513
+#> Contingency Coefficient 0.1496
+#> Cramer's V 0.1513
+#> ----------------------------------------------------
+
diff --git a/docs/reference/infer_chisq_gof_test.html b/docs/reference/infer_chisq_gof_test.html
index 3ccf344..e9e4043 100644
--- a/docs/reference/infer_chisq_gof_test.html
+++ b/docs/reference/infer_chisq_gof_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,7 +140,7 @@
Chi Square Goodness of Fit Test
differ from hypothesized proportions
- infer_chisq_gof_test (data , x , y , correct = FALSE )
+ infer_chisq_gof_test ( data , x , y , correct = FALSE )
Arguments
@@ -195,39 +195,43 @@ See a
Examples
- #> Test Statistics
-#> -----------------------
-#> Chi-Square 5.0286
-#> DF 3
-#> Pr > Chi Sq 0.1697
-#> Sample Size 200
-#>
-#> Variable: race
-#> -----------------------------------------------------------------
-#> Category Observed Expected % Deviation Std. Residuals
-#> -----------------------------------------------------------------
-#> 1 24 20 20.00 0.89
-#> 2 11 20 -45.00 -2.01
-#> 3 20 20 0.00 0.00
-#> 4 145 140 3.57 0.42
-#> -----------------------------------------------------------------
#> Test Statistics
-#> -----------------------
-#> Chi-Square 4.3821
-#> DF 3
-#> Pr > Chi Sq 0.2231
-#> Sample Size 200
-#>
-#> Variable: race
-#> -----------------------------------------------------------------
-#> Category Observed Expected % Deviation Std. Residuals
-#> -----------------------------------------------------------------
-#> 1 24 20 17.50 0.78
-#> 2 11 20 -47.50 -2.12
-#> 3 20 20 -2.50 -0.11
-#> 4 145 140 3.21 0.38
-#> -----------------------------------------------------------------
+ infer_chisq_gof_test ( hsb , race , c ( 20 , 20 , 20 , 140 ) )
+#> Test Statistics
+#> -----------------------
+#> Chi-Square 5.0286
+#> DF 3
+#> Pr > Chi Sq 0.1697
+#> Sample Size 200
+#>
+#> Variable: race
+#> -----------------------------------------------------------------
+#> Category Observed Expected % Deviation Std. Residuals
+#> -----------------------------------------------------------------
+#> 1 24 20 20.00 0.89
+#> 2 11 20 -45.00 -2.01
+#> 3 20 20 0.00 0.00
+#> 4 145 140 3.57 0.42
+#> -----------------------------------------------------------------
+
+# apply continuity correction
+infer_chisq_gof_test ( hsb , race , c ( 20 , 20 , 20 , 140 ) , correct = TRUE )
+#> Test Statistics
+#> -----------------------
+#> Chi-Square 4.3821
+#> DF 3
+#> Pr > Chi Sq 0.2231
+#> Sample Size 200
+#>
+#> Variable: race
+#> -----------------------------------------------------------------
+#> Category Observed Expected % Deviation Std. Residuals
+#> -----------------------------------------------------------------
+#> 1 24 20 17.50 0.78
+#> 2 11 20 -47.50 -2.12
+#> 3 20 20 -2.50 -0.11
+#> 4 145 140 3.21 0.38
+#> -----------------------------------------------------------------
+
diff --git a/docs/reference/infer_cochran_qtest.html b/docs/reference/infer_cochran_qtest.html
index 4a6442e..2dc8d87 100644
--- a/docs/reference/infer_cochran_qtest.html
+++ b/docs/reference/infer_cochran_qtest.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,7 +140,7 @@
Cochran Q Test
equal in the same population.
- infer_cochran_qtest (data , ... )
+ infer_cochran_qtest ( data , ... )
Arguments
@@ -177,13 +177,15 @@ R
Statistical Procedures, 4th edition. : Chapman & Hall/CRC.
Examples
- infer_cochran_qtest (exam , exam1 , exam2 , exam3 )
#> Test Statistics
-#> ----------------------
-#> N 15
-#> Cochran's Q 4.75
-#> df 2
-#> p value 0.093
-#> ----------------------
+ infer_cochran_qtest ( exam , exam1 , exam2 , exam3 )
+#> Test Statistics
+#> ----------------------
+#> N 15
+#> Cochran's Q 4.75
+#> df 2
+#> p value 0.093
+#> ----------------------
+
diff --git a/docs/reference/infer_launch_shiny_app.html b/docs/reference/infer_launch_shiny_app.html
index a2bce1c..d3d7e1e 100644
--- a/docs/reference/infer_launch_shiny_app.html
+++ b/docs/reference/infer_launch_shiny_app.html
@@ -72,7 +72,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -112,7 +112,7 @@
-
+
@@ -130,7 +130,7 @@
@@ -138,14 +138,15 @@
Launch Shiny App
Launches shiny app
- infer_launch_shiny_app ()
+ infer_launch_shiny_app ( )
Examples
- if (FALSE ) {
-infer_launch_shiny_app ()
-}
+ if ( FALSE ) {
+infer_launch_shiny_app ( )
+}
+
diff --git a/docs/reference/infer_levene_test.html b/docs/reference/infer_levene_test.html
index 2c6e085..379fa38 100644
--- a/docs/reference/infer_levene_test.html
+++ b/docs/reference/infer_levene_test.html
@@ -77,7 +77,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -117,7 +117,7 @@
-
+
@@ -135,7 +135,7 @@
@@ -148,10 +148,10 @@
Levene's test for equality of variances
the mean with the 10
- infer_levene_test (data , ... )
+ infer_levene_test ( data , ... )
# S3 method for default
-infer_levene_test (data , ... , group_var = NULL , trim_mean = 0.1 )
+infer_levene_test ( data , ... , group_var = NULL , trim_mean = 0.1 )
Arguments
@@ -208,46 +208,50 @@ R
Carroll, R. J., and H. Schneider. 1985. A note on Levene’s tests for equality of variances. Statistics and Probability Letters 3: 191–194.
Examples
- # using grouping variable
-infer_levene_test (hsb , read , group_var = race )
#> Summary Statistics
-#> Levels Frequency Mean Std. Dev
-#> -----------------------------------------
-#> 1 24 46.67 10.24
-#> 2 11 51.91 7.66
-#> 3 20 46.8 7.12
-#> 4 145 53.92 10.28
-#> -----------------------------------------
-#> Total 200 52.23 10.25
-#> -----------------------------------------
-#>
-#> Test Statistics
-#> -------------------------------------------------------------------------
-#> Statistic Num DF Den DF F Pr > F
-#> -------------------------------------------------------------------------
-#> Brown and Forsythe 3 196 3.44 0.0179
-#> Levene 3 196 3.4792 0.017
-#> Brown and Forsythe (Trimmed Mean) 3 196 3.3936 0.019
-#> -------------------------------------------------------------------------
-# using variables
-infer_levene_test (hsb , read , write , socst )
#> Summary Statistics
-#> Levels Frequency Mean Std. Dev
-#> -----------------------------------------
-#> 0 200 52.23 10.25
-#> 1 200 52.77 9.48
-#> 2 200 52.41 10.74
-#> -----------------------------------------
-#> Total 600 52.47 10.15
-#> -----------------------------------------
-#>
-#> Test Statistics
-#> -------------------------------------------------------------------------
-#> Statistic Num DF Den DF F Pr > F
-#> -------------------------------------------------------------------------
-#> Brown and Forsythe 2 597 1.1683 0.3116
-#> Levene 2 597 1.3803 0.2523
-#> Brown and Forsythe (Trimmed Mean) 2 597 1.3258 0.2664
-#> -------------------------------------------------------------------------
-
+ # using grouping variable
+infer_levene_test ( hsb , read , group_var = race )
+#> Summary Statistics
+#> Levels Frequency Mean Std. Dev
+#> -----------------------------------------
+#> 1 24 46.67 10.24
+#> 2 11 51.91 7.66
+#> 3 20 46.8 7.12
+#> 4 145 53.92 10.28
+#> -----------------------------------------
+#> Total 200 52.23 10.25
+#> -----------------------------------------
+#>
+#> Test Statistics
+#> -------------------------------------------------------------------------
+#> Statistic Num DF Den DF F Pr > F
+#> -------------------------------------------------------------------------
+#> Brown and Forsythe 3 196 3.44 0.0179
+#> Levene 3 196 3.4792 0.017
+#> Brown and Forsythe (Trimmed Mean) 3 196 3.3936 0.019
+#> -------------------------------------------------------------------------
+
+# using variables
+infer_levene_test ( hsb , read , write , socst )
+#> Summary Statistics
+#> Levels Frequency Mean Std. Dev
+#> -----------------------------------------
+#> 0 200 52.23 10.25
+#> 1 200 52.77 9.48
+#> 2 200 52.41 10.74
+#> -----------------------------------------
+#> Total 600 52.47 10.15
+#> -----------------------------------------
+#>
+#> Test Statistics
+#> -------------------------------------------------------------------------
+#> Statistic Num DF Den DF F Pr > F
+#> -------------------------------------------------------------------------
+#> Brown and Forsythe 2 597 1.1683 0.3116
+#> Levene 2 597 1.3803 0.2523
+#> Brown and Forsythe (Trimmed Mean) 2 597 1.3258 0.2664
+#> -------------------------------------------------------------------------
+
+
diff --git a/docs/reference/infer_mcnemar_test.html b/docs/reference/infer_mcnemar_test.html
index 21d9a2c..93f1f84 100644
--- a/docs/reference/infer_mcnemar_test.html
+++ b/docs/reference/infer_mcnemar_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,7 +140,7 @@
McNemar Test
equal in the same population.
- infer_mcnemar_test (data , x = NULL , y = NULL )
+ infer_mcnemar_test ( data , x = NULL , y = NULL )
Arguments
@@ -195,121 +195,119 @@ See a
Examples
- #>
-#> Attaching package: ‘dplyr’
#> The following object is masked from ‘package:testthat’:
-#>
-#> matches
#> The following objects are masked from ‘package:stats’:
-#>
-#> filter, lag
#> The following objects are masked from ‘package:base’:
-#>
-#> intersect, setdiff, setequal, union
#> Controls
-#> ---------------------------------
-#> Cases 0 1 Total
-#> ---------------------------------
-#> 0 135 21 156
-#> 1 18 26 44
-#> ---------------------------------
-#> Total 153 47 200
-#> ---------------------------------
-#>
-#> McNemar's Test
-#> ----------------------------
-#> McNemar's chi2 0.2308
-#> DF 1
-#> Pr > chi2 0.631
-#> Exact Pr >= chi2 0.7493
-#> ----------------------------
-#>
-#> Kappa Coefficient
-#> --------------------------------
-#> Kappa 0.4454
-#> ASE 0.075
-#> 95% Lower Conf Limit 0.2984
-#> 95% Upper Conf Limit 0.5923
-#> --------------------------------
-#>
-#> Proportion With Factor
-#> ----------------------
-#> cases 0.78
-#> controls 0.765
-#> ratio 1.0196
-#> odds ratio 1.1667
-#> ----------------------
#> Controls
-#> ---------------------------------
-#> Cases 0 1 Total
-#> ---------------------------------
-#> 0 135 21 156
-#> 1 18 26 44
-#> ---------------------------------
-#> Total 153 47 200
-#> ---------------------------------
-#>
-#> McNemar's Test
-#> ----------------------------
-#> McNemar's chi2 0.2308
-#> DF 1
-#> Pr > chi2 0.631
-#> Exact Pr >= chi2 0.7493
-#> ----------------------------
-#>
-#> Kappa Coefficient
-#> --------------------------------
-#> Kappa 0.4454
-#> ASE 0.075
-#> 95% Lower Conf Limit 0.2984
-#> 95% Upper Conf Limit 0.5923
-#> --------------------------------
-#>
-#> Proportion With Factor
-#> ----------------------
-#> cases 0.78
-#> controls 0.765
-#> ratio 1.0196
-#> odds ratio 1.1667
-#> ----------------------
#> Controls
-#> ---------------------------------
-#> Cases 0 1 Total
-#> ---------------------------------
-#> 0 135 21 156
-#> 1 18 26 44
-#> ---------------------------------
-#> Total 153 47 200
-#> ---------------------------------
-#>
-#> McNemar's Test
-#> ----------------------------
-#> McNemar's chi2 0.2308
-#> DF 1
-#> Pr > chi2 0.631
-#> Exact Pr >= chi2 0.7493
-#> ----------------------------
-#>
-#> Kappa Coefficient
-#> --------------------------------
-#> Kappa 0.4454
-#> ASE 0.075
-#> 95% Lower Conf Limit 0.2984
-#> 95% Upper Conf Limit 0.5923
-#> --------------------------------
-#>
-#> Proportion With Factor
-#> ----------------------
-#> cases 0.78
-#> controls 0.765
-#> ratio 1.0196
-#> odds ratio 1.1667
-#> ----------------------
+ # using variables from data
+hb <- hsb
+hb $ himath <- ifelse ( hsb $ math > 60 , 1 , 0 )
+hb $ hiread <- ifelse ( hsb $ read > 60 , 1 , 0 )
+infer_mcnemar_test ( hb , himath , hiread )
+#> Controls
+#> ---------------------------------
+#> Cases 0 1 Total
+#> ---------------------------------
+#> 0 135 21 156
+#> 1 18 26 44
+#> ---------------------------------
+#> Total 153 47 200
+#> ---------------------------------
+#>
+#> McNemar's Test
+#> ----------------------------
+#> McNemar's chi2 0.2308
+#> DF 1
+#> Pr > chi2 0.631
+#> Exact Pr >= chi2 0.7493
+#> ----------------------------
+#>
+#> Kappa Coefficient
+#> --------------------------------
+#> Kappa 0.4454
+#> ASE 0.075
+#> 95% Lower Conf Limit 0.2984
+#> 95% Upper Conf Limit 0.5923
+#> --------------------------------
+#>
+#> Proportion With Factor
+#> ----------------------
+#> cases 0.78
+#> controls 0.765
+#> ratio 1.0196
+#> odds ratio 1.1667
+#> ----------------------
+
+# test if the proportion of students in himath and hiread group is same
+himath <- ifelse ( hsb $ math > 60 , 1 , 0 )
+hiread <- ifelse ( hsb $ read > 60 , 1 , 0 )
+infer_mcnemar_test ( table ( himath , hiread ) )
+#> Controls
+#> ---------------------------------
+#> Cases 0 1 Total
+#> ---------------------------------
+#> 0 135 21 156
+#> 1 18 26 44
+#> ---------------------------------
+#> Total 153 47 200
+#> ---------------------------------
+#>
+#> McNemar's Test
+#> ----------------------------
+#> McNemar's chi2 0.2308
+#> DF 1
+#> Pr > chi2 0.631
+#> Exact Pr >= chi2 0.7493
+#> ----------------------------
+#>
+#> Kappa Coefficient
+#> --------------------------------
+#> Kappa 0.4454
+#> ASE 0.075
+#> 95% Lower Conf Limit 0.2984
+#> 95% Upper Conf Limit 0.5923
+#> --------------------------------
+#>
+#> Proportion With Factor
+#> ----------------------
+#> cases 0.78
+#> controls 0.765
+#> ratio 1.0196
+#> odds ratio 1.1667
+#> ----------------------
+
+# using matrix
+infer_mcnemar_test ( matrix ( c ( 135 , 18 , 21 , 26 ) , nrow = 2 ) )
+#> Controls
+#> ---------------------------------
+#> Cases 0 1 Total
+#> ---------------------------------
+#> 0 135 21 156
+#> 1 18 26 44
+#> ---------------------------------
+#> Total 153 47 200
+#> ---------------------------------
+#>
+#> McNemar's Test
+#> ----------------------------
+#> McNemar's chi2 0.2308
+#> DF 1
+#> Pr > chi2 0.631
+#> Exact Pr >= chi2 0.7493
+#> ----------------------------
+#>
+#> Kappa Coefficient
+#> --------------------------------
+#> Kappa 0.4454
+#> ASE 0.075
+#> 95% Lower Conf Limit 0.2984
+#> 95% Upper Conf Limit 0.5923
+#> --------------------------------
+#>
+#> Proportion With Factor
+#> ----------------------
+#> cases 0.78
+#> controls 0.765
+#> ratio 1.0196
+#> odds ratio 1.1667
+#> ----------------------
+
diff --git a/docs/reference/infer_oneway_anova.html b/docs/reference/infer_oneway_anova.html
index 41eca65..a275af3 100644
--- a/docs/reference/infer_oneway_anova.html
+++ b/docs/reference/infer_oneway_anova.html
@@ -72,7 +72,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -112,7 +112,7 @@
infer_oneway_anova (data , x , y , ... )
+ infer_oneway_anova ( data , x , y , ... )
Arguments
@@ -163,8 +163,8 @@ Arg
Value
- owanova
returns an object of class "owanova"
.
-An object of class "owanova"
is a list containing the
+
infer_oneway_anova
returns an object of class "infer_oneway_anova"
.
+An object of class "infer_oneway_anova"
is a list containing the
following components:
adjusted_r2 adjusted r squared value
df_btw between groups degress of freedom
@@ -182,11 +182,6 @@ Value
ss_within within group sum of squares
ss_total total sum of squares
- Deprecated Functions
-
-
-
-owanova()
has been deprecated. Instead use infer_oneway_anova()
.
References
Kutner, M. H., Nachtsheim, C., Neter, J., & Li, W. (2005).
@@ -196,49 +191,53 @@
See a
Examples
- infer_oneway_anova (mtcars , mpg , cyl )
#> ANOVA
-#> --------------------------------------------------------------------
-#> Sum of
-#> Squares DF Mean Square F Sig.
-#> --------------------------------------------------------------------
-#> Between Groups 824.785 2 412.392 39.699 0
-#> Within Groups 301.263 29 10.388
-#> Total 1126.048 31
-#> --------------------------------------------------------------------
-#>
-#> Report
-#> ------------------------------------------
-#> Category N Mean Std. Dev.
-#> ------------------------------------------
-#> 4 11 26.664 4.510
-#> 6 7 19.743 1.454
-#> 8 14 15.100 2.560
-#> ------------------------------------------
-#>
-#> Number of obs = 32 R-squared = 0.7325
-#> Root MSE = 3.2231 Adj R-squared = 0.714
-#>
infer_oneway_anova (hsb , write , prog )
#> ANOVA
-#> ----------------------------------------------------------------------
-#> Sum of
-#> Squares DF Mean Square F Sig.
-#> ----------------------------------------------------------------------
-#> Between Groups 3175.698 2 1587.849 21.275 0
-#> Within Groups 14703.177 197 74.635
-#> Total 17878.875 199
-#> ----------------------------------------------------------------------
-#>
-#> Report
-#> -----------------------------------------
-#> Category N Mean Std. Dev.
-#> -----------------------------------------
-#> 1 45 51.333 9.398
-#> 2 105 56.257 7.943
-#> 3 50 46.760 9.319
-#> -----------------------------------------
-#>
-#> Number of obs = 200 R-squared = 0.1776
-#> Root MSE = 8.6392 Adj R-squared = 0.1693
-#>
+ infer_oneway_anova ( mtcars , mpg , cyl )
+#> ANOVA
+#> --------------------------------------------------------------------
+#> Sum of
+#> Squares DF Mean Square F Sig.
+#> --------------------------------------------------------------------
+#> Between Groups 824.785 2 412.392 39.699 0
+#> Within Groups 301.263 29 10.388
+#> Total 1126.048 31
+#> --------------------------------------------------------------------
+#>
+#> Report
+#> ----------------------------------------
+#> Category N Mean Std. Dev.
+#> ----------------------------------------
+#> 4 11 26.664 4.510
+#> 6 7 19.743 1.454
+#> 8 14 15.100 2.560
+#> ----------------------------------------
+#>
+#> Number of obs = 32 R-squared = 0.7325
+#> Root MSE = 3.2231 Adj R-squared = 0.714
+#>
+infer_oneway_anova ( hsb , write , prog )
+#> ANOVA
+#> ----------------------------------------------------------------------
+#> Sum of
+#> Squares DF Mean Square F Sig.
+#> ----------------------------------------------------------------------
+#> Between Groups 3175.698 2 1587.849 21.275 0
+#> Within Groups 14703.177 197 74.635
+#> Total 17878.875 199
+#> ----------------------------------------------------------------------
+#>
+#> Report
+#> -----------------------------------------
+#> Category N Mean Std. Dev.
+#> -----------------------------------------
+#> 1 45 51.333 9.398
+#> 2 105 56.257 7.943
+#> 3 50 46.760 9.319
+#> -----------------------------------------
+#>
+#> Number of obs = 200 R-squared = 0.1776
+#> Root MSE = 8.6392 Adj R-squared = 0.1693
+#>
+
diff --git a/docs/reference/infer_os_prop_test.html b/docs/reference/infer_os_prop_test.html
index d06d20c..ebf36ad 100644
--- a/docs/reference/infer_os_prop_test.html
+++ b/docs/reference/infer_os_prop_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,22 +140,22 @@
One Sample Test of Proportion
specified population proportion.
- infer_os_prop_test (
- data ,
- variable = NULL ,
- prob = 0.5 ,
- phat = 0.5 ,
- alternative = c ("both" , "less" , "greater" , "all" )
-)
+ infer_os_prop_test (
+ data ,
+ variable = NULL ,
+ prob = 0.5 ,
+ phat = 0.5 ,
+ alternative = c ( "both" , "less" , "greater" , "all" )
+)
# S3 method for default
-infer_os_prop_test (
- data ,
- variable = NULL ,
- prob = 0.5 ,
- phat = 0.5 ,
- alternative = c ("both" , "less" , "greater" , "all" )
-)
+infer_os_prop_test (
+ data ,
+ variable = NULL ,
+ prob = 0.5 ,
+ phat = 0.5 ,
+ alternative = c ( "both" , "less" , "greater" , "all" )
+)
Arguments
@@ -214,36 +214,40 @@ See a
Examples
- # use as a calculator
-infer_os_prop_test (200 , prob = 0.5 , phat = 0.3 )
#> Test Statistics
-#> --------------------------
-#> Sample Size 200
-#> Exp Prop 0.5
-#> Obs Prop 0.3
-#> z -5.6569
-#> Pr(|Z| > |z|) 0
-#>
-#> -----------------------------------------------------------------
-#> Category Observed Expected % Deviation Std. Residuals
-#> -----------------------------------------------------------------
-#> 0 140 100 40.00 4.00
-#> 1 60 100 -40.00 -4.00
-#> -----------------------------------------------------------------
-# using data set
-infer_os_prop_test (hsb , female , prob = 0.5 )
#> Test Statistics
-#> -------------------------
-#> Sample Size 200
-#> Exp Prop 0.5
-#> Obs Prop 0.545
-#> z 1.2728
-#> Pr(|Z| > |z|) 0.2031
-#>
-#> -----------------------------------------------------------------
-#> Category Observed Expected % Deviation Std. Residuals
-#> -----------------------------------------------------------------
-#> 0 91 100 -9.00 -0.90
-#> 1 109 100 9.00 0.90
-#> -----------------------------------------------------------------
+ # use as a calculator
+infer_os_prop_test ( 200 , prob = 0.5 , phat = 0.3 )
+#> Test Statistics
+#> --------------------------
+#> Sample Size 200
+#> Exp Prop 0.5
+#> Obs Prop 0.3
+#> z -5.6569
+#> Pr(|Z| > |z|) 0
+#>
+#> -----------------------------------------------------------------
+#> Category Observed Expected % Deviation Std. Residuals
+#> -----------------------------------------------------------------
+#> 0 140 100 40.00 4.00
+#> 1 60 100 -40.00 -4.00
+#> -----------------------------------------------------------------
+
+# using data set
+infer_os_prop_test ( hsb , female , prob = 0.5 )
+#> Test Statistics
+#> -------------------------
+#> Sample Size 200
+#> Exp Prop 0.5
+#> Obs Prop 0.545
+#> z 1.2728
+#> Pr(|Z| > |z|) 0.2031
+#>
+#> -----------------------------------------------------------------
+#> Category Observed Expected % Deviation Std. Residuals
+#> -----------------------------------------------------------------
+#> 0 91 100 -9.00 -0.90
+#> 1 109 100 9.00 0.90
+#> -----------------------------------------------------------------
+
diff --git a/docs/reference/infer_os_t_test.html b/docs/reference/infer_os_t_test.html
index 89e5757..b88d529 100644
--- a/docs/reference/infer_os_t_test.html
+++ b/docs/reference/infer_os_t_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,14 +140,14 @@
One Sample t Test
hypothesis that a sample has a mean equal to a hypothesized value.
- infer_os_t_test (
- data ,
- x ,
- mu = 0 ,
- alpha = 0.05 ,
- alternative = c ("both" , "less" , "greater" , "all" ),
- ...
-)
+ infer_os_t_test (
+ data ,
+ x ,
+ mu = 0 ,
+ alpha = 0.05 ,
+ alternative = c ( "both" , "less" , "greater" , "all" ) ,
+ ...
+)
Arguments
@@ -217,73 +217,82 @@ See a
Examples
- # lower tail
-infer_os_t_test (hsb , write , mu = 50 , alternative = 'less' )
#> One-Sample Statistics
-#> ---------------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ---------------------------------------------------------------------------------
-#> write 200 52.775 0.6702 9.4786 -Inf 53.8828
-#> ---------------------------------------------------------------------------------
-#>
-#> Lower Tail Test
-#> ---------------
-#>
-#> Ho: mean(write) >=50
-#> Ha: mean(write) <50
-#> --------------------------------------------------------------------------------
-#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
-#> --------------------------------------------------------------------------------
-#> write 4.141 199 0.99997 2.775 -Inf 3.8828
-#> --------------------------------------------------------------------------------
-# upper tail
-infer_os_t_test (hsb , write , mu = 50 , alternative = 'greater' )
#> One-Sample Statistics
-#> ---------------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ---------------------------------------------------------------------------------
-#> write 200 52.775 0.6702 9.4786 51.6678 Inf
-#> ---------------------------------------------------------------------------------
-#>
-#> Upper Tail Test
-#> ---------------
-#>
-#> Ho: mean(write) <=50
-#> Ha: mean(write) >50
-#> --------------------------------------------------------------------------------
-#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
-#> --------------------------------------------------------------------------------
-#> write 4.141 199 0.99997 2.775 1.6678 Inf
-#> --------------------------------------------------------------------------------
-# both tails
-infer_os_t_test (hsb , write , mu = 50 , alternative = 'both' )
#> One-Sample Statistics
-#> ---------------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ---------------------------------------------------------------------------------
-#> write 200 52.775 0.6702 9.4786 51.4537 54.0969
-#> ---------------------------------------------------------------------------------
-#>
-#> Two Tail Test
-#> ---------------
-#>
-#> Ho: mean(write) ~=50
-#> Ha: mean(write) !=50
-#> --------------------------------------------------------------------------------
-#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
-#> --------------------------------------------------------------------------------
-#> write 4.141 199 0.99997 2.775 1.4537 4.0969
-#> --------------------------------------------------------------------------------
-# all tails
-infer_os_t_test (hsb , write , mu = 50 , alternative = 'all' )
#> One-Sample Statistics
-#> ---------------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ---------------------------------------------------------------------------------
-#> write 200 52.775 0.6702 9.4786 51.4537 54.0969
-#> ---------------------------------------------------------------------------------
-#>
-#> Ho: mean(write) ~=50
-#>
-#> Ha: mean < 50 Ha: mean ~= 50 Ha: mean > 50
-#> t = 4.141 t = 4.141 t = 4.141
-#> P < t = 1.0000 P > |t| = 0.0001 P > t = 0.0000
+ # lower tail
+infer_os_t_test ( hsb , write , mu = 50 , alternative = 'less' )
+#> One-Sample Statistics
+#> ---------------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ---------------------------------------------------------------------------------
+#> write 200 52.775 0.6702 9.4786 -Inf 53.8828
+#> ---------------------------------------------------------------------------------
+#>
+#> Lower Tail Test
+#> ---------------
+#>
+#> Ho: mean(write) >=50
+#> Ha: mean(write) <50
+#> --------------------------------------------------------------------------------
+#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
+#> --------------------------------------------------------------------------------
+#> write 4.141 199 0.99997 2.775 -Inf 3.8828
+#> --------------------------------------------------------------------------------
+
+# upper tail
+infer_os_t_test ( hsb , write , mu = 50 , alternative = 'greater' )
+#> One-Sample Statistics
+#> ---------------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ---------------------------------------------------------------------------------
+#> write 200 52.775 0.6702 9.4786 51.6678 Inf
+#> ---------------------------------------------------------------------------------
+#>
+#> Upper Tail Test
+#> ---------------
+#>
+#> Ho: mean(write) <=50
+#> Ha: mean(write) >50
+#> --------------------------------------------------------------------------------
+#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
+#> --------------------------------------------------------------------------------
+#> write 4.141 199 0.00003 2.775 1.6678 Inf
+#> --------------------------------------------------------------------------------
+
+# both tails
+infer_os_t_test ( hsb , write , mu = 50 , alternative = 'both' )
+#> One-Sample Statistics
+#> ---------------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ---------------------------------------------------------------------------------
+#> write 200 52.775 0.6702 9.4786 51.4537 54.0969
+#> ---------------------------------------------------------------------------------
+#>
+#> Two Tail Test
+#> ---------------
+#>
+#> Ho: mean(write) ~=50
+#> Ha: mean(write) !=50
+#> --------------------------------------------------------------------------------
+#> Variable t DF Sig Mean Diff. [95% Conf. Interval]
+#> --------------------------------------------------------------------------------
+#> write 4.141 199 0.00005 2.775 1.4537 4.0969
+#> --------------------------------------------------------------------------------
+
+# all tails
+infer_os_t_test ( hsb , write , mu = 50 , alternative = 'all' )
+#> One-Sample Statistics
+#> ---------------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ---------------------------------------------------------------------------------
+#> write 200 52.775 0.6702 9.4786 51.4537 54.0969
+#> ---------------------------------------------------------------------------------
+#>
+#> Ho: mean(write) ~=50
+#>
+#> Ha: mean < 50 Ha: mean ~= 50 Ha: mean > 50
+#> t = 4.141 t = 4.141 t = 4.141
+#> P < t = 0.99997 P > |t| = 0.00005 P > t = 0.00003
+
+
diff --git a/docs/reference/infer_os_var_test.html b/docs/reference/infer_os_var_test.html
index 758b90c..35a1908 100644
--- a/docs/reference/infer_os_var_test.html
+++ b/docs/reference/infer_os_var_test.html
@@ -74,7 +74,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -114,7 +114,7 @@
-
+
@@ -132,7 +132,7 @@
@@ -142,14 +142,14 @@
One Sample Variance Comparison Test
equal to a hypothesized value.
- infer_os_var_test (
- data ,
- x ,
- sd ,
- confint = 0.95 ,
- alternative = c ("both" , "less" , "greater" , "all" ),
- ...
-)
+ infer_os_var_test (
+ data ,
+ x ,
+ sd ,
+ confint = 0.95 ,
+ alternative = c ( "both" , "less" , "greater" , "all" ) ,
+ ...
+)
Arguments
@@ -217,76 +217,84 @@ See a
Examples
- # lower tail
-infer_os_var_test (mtcars , mpg , 5 , alternative = 'less' )
#> One-Sample Statistics
-#> -----------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
-#> -----------------------------------------------------------------------------
-#>
-#> Lower Tail Test
-#> ---------------
-#> Ho: sd(mpg) >= 5
-#> Ha: sd(mpg) < 5
-#>
-#> Chi-Square Test for Variance
-#> -------------------------------------
-#> Variable c DF Sig
-#> -------------------------------------
-#> mpg 45.042 31 0.9506
-#> -------------------------------------
-# upper tail
-infer_os_var_test (mtcars , mpg , 5 , alternative = 'greater' )
#> One-Sample Statistics
-#> -----------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
-#> -----------------------------------------------------------------------------
-#>
-#> Upper Tail Test
-#> ---------------
-#> Ho: sd(mpg) <= 5
-#> Ha: sd(mpg) > 5
-#>
-#> Chi-Square Test for Variance
-#> -------------------------------------
-#> Variable c DF Sig
-#> -------------------------------------
-#> mpg 45.042 31 0.0494
-#> -------------------------------------
-# both tails
-infer_os_var_test (mtcars , mpg , 5 , alternative = 'both' )
#> One-Sample Statistics
-#> -----------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
-#> -----------------------------------------------------------------------------
-#>
-#> Two Tail Test
-#> ---------------
-#> Ho: sd(mpg) = 5
-#> Ha: sd(mpg) != 5
-#>
-#> Chi-Square Test for Variance
-#> -------------------------------------
-#> Variable c DF Sig
-#> -------------------------------------
-#> mpg 45.042 31 0.0988
-#> -------------------------------------
-# all tails
-infer_os_var_test (mtcars , mpg , 5 , alternative = 'all' )
#> One-Sample Statistics
-#> -----------------------------------------------------------------------------
-#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
-#> -----------------------------------------------------------------------------
-#>
-#> Ho: sd(mpg) = 5
-#>
-#> Ha: sd < 5 Ha: sd != 5 Ha: sd > 5
-#> c = 45.0419 c = 45.0419 c = 45.0419
-#> Pr(C < c) = 0.9506 2 * Pr(C > c) = 0.0988 Pr(C > c) = 0.0494
+ # lower tail
+infer_os_var_test ( mtcars , mpg , 5 , alternative = 'less' )
+#> One-Sample Statistics
+#> -----------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
+#> -----------------------------------------------------------------------------
+#>
+#> Lower Tail Test
+#> ---------------
+#> Ho: sd(mpg) >= 5
+#> Ha: sd(mpg) < 5
+#>
+#> Chi-Square Test for Variance
+#> -------------------------------------
+#> Variable c DF Sig
+#> -------------------------------------
+#> mpg 45.042 31 0.9506
+#> -------------------------------------
+
+# upper tail
+infer_os_var_test ( mtcars , mpg , 5 , alternative = 'greater' )
+#> One-Sample Statistics
+#> -----------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
+#> -----------------------------------------------------------------------------
+#>
+#> Upper Tail Test
+#> ---------------
+#> Ho: sd(mpg) <= 5
+#> Ha: sd(mpg) > 5
+#>
+#> Chi-Square Test for Variance
+#> -------------------------------------
+#> Variable c DF Sig
+#> -------------------------------------
+#> mpg 45.042 31 0.0494
+#> -------------------------------------
+
+# both tails
+infer_os_var_test ( mtcars , mpg , 5 , alternative = 'both' )
+#> One-Sample Statistics
+#> -----------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
+#> -----------------------------------------------------------------------------
+#>
+#> Two Tail Test
+#> ---------------
+#> Ho: sd(mpg) = 5
+#> Ha: sd(mpg) != 5
+#>
+#> Chi-Square Test for Variance
+#> -------------------------------------
+#> Variable c DF Sig
+#> -------------------------------------
+#> mpg 45.042 31 0.0988
+#> -------------------------------------
+
+# all tails
+infer_os_var_test ( mtcars , mpg , 5 , alternative = 'all' )
+#> One-Sample Statistics
+#> -----------------------------------------------------------------------------
+#> Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> mpg 32 20.0906 1.0654 6.0269 3.8737 10.6527
+#> -----------------------------------------------------------------------------
+#>
+#> Ho: sd(mpg) = 5
+#>
+#> Ha: sd < 5 Ha: sd != 5 Ha: sd > 5
+#> c = 45.0419 c = 45.0419 c = 45.0419
+#> Pr(C < c) = 0.9506 2 * Pr(C > c) = 0.0988 Pr(C > c) = 0.0494
+
diff --git a/docs/reference/infer_runs_test.html b/docs/reference/infer_runs_test.html
index 610dd86..3ed1205 100644
--- a/docs/reference/infer_runs_test.html
+++ b/docs/reference/infer_runs_test.html
@@ -76,7 +76,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -116,7 +116,7 @@
-
+
@@ -134,7 +134,7 @@
@@ -146,14 +146,14 @@
Test for Random Order
correlation; a large number indicates negative serial correlation.
- infer_runs_test (
- data ,
- x ,
- drop = FALSE ,
- split = FALSE ,
- mean = FALSE ,
- threshold = NA
-)
+ infer_runs_test (
+ data ,
+ x ,
+ drop = FALSE ,
+ split = FALSE ,
+ mean = FALSE ,
+ threshold = NA
+)
Arguments
@@ -214,56 +214,67 @@ R
Swed, F. S., and C. Eisenhart. 1943. Tables for testing randomness of grouping in a sequence of alternatives. Annals of Mathematical Statistics 14: 66–87.
Examples
- infer_runs_test (hsb , read )
#> Runs Test
-#> Total Cases: 200
-#> Test Value : 50
-#> Cases < Test Value: 101
-#> Cases > Test Value: 99
-#> Number of Runs: 95
-#> Expected Runs: 100.99
-#> Variance (Runs): 49.73874
-#> z Statistic: -0.8493358
-#> p-value: 0.3956945
-infer_runs_test (hsb , read , drop = TRUE )
#> Runs Test
-#> Total Cases: 200
-#> Test Value : 50
-#> Cases < Test Value: 83
-#> Cases > Test Value: 99
-#> Number of Runs: 89
-#> Expected Runs: 91.2967
-#> Variance (Runs): 44.54805
-#> z Statistic: -0.3441046
-#> p-value: 0.7307676
-infer_runs_test (hsb , read , split = TRUE )
#> Runs Test
-#> Total Cases: 200
-#> Test Value : 50
-#> Cases < Test Value: 101
-#> Cases > Test Value: 99
-#> Number of Runs: 95
-#> Expected Runs: 100.99
-#> Variance (Runs): 49.73874
-#> z Statistic: -0.8493358
-#> p-value: 0.3956945
-infer_runs_test (hsb , read , mean = TRUE )
#> Runs Test
-#> Total Cases: 200
-#> Test Value : 52.23
-#> Cases < Test Value: 115
-#> Cases > Test Value: 85
-#> Number of Runs: 93
-#> Expected Runs: 98.75
-#> Variance (Runs): 47.52418
-#> z Statistic: -0.8340854
-#> p-value: 0.4042329
-infer_runs_test (hsb , read , threshold = 0 )
#> Runs Test
-#> Total Cases: 200
-#> Test Value : 0
-#> Cases < Test Value: 0
-#> Cases > Test Value: 200
-#> Number of Runs: 1
-#> Expected Runs: 1
-#> Variance (Runs): 0
-#> z Statistic: NaN
-#> p-value: NaN
+ infer_runs_test ( hsb , read )
+#> Runs Test
+#> Total Cases: 200
+#> Test Value : 50
+#> Cases < Test Value: 101
+#> Cases > Test Value: 99
+#> Number of Runs: 95
+#> Expected Runs: 100.99
+#> Variance (Runs): 49.73874
+#> z Statistic: -0.8493358
+#> p-value: 0.3956945
+
+infer_runs_test ( hsb , read , drop = TRUE )
+#> Runs Test
+#> Total Cases: 200
+#> Test Value : 50
+#> Cases < Test Value: 83
+#> Cases > Test Value: 99
+#> Number of Runs: 89
+#> Expected Runs: 91.2967
+#> Variance (Runs): 44.54805
+#> z Statistic: -0.3441046
+#> p-value: 0.7307676
+
+infer_runs_test ( hsb , read , split = TRUE )
+#> Runs Test
+#> Total Cases: 200
+#> Test Value : 50
+#> Cases < Test Value: 101
+#> Cases > Test Value: 99
+#> Number of Runs: 95
+#> Expected Runs: 100.99
+#> Variance (Runs): 49.73874
+#> z Statistic: -0.8493358
+#> p-value: 0.3956945
+
+infer_runs_test ( hsb , read , mean = TRUE )
+#> Runs Test
+#> Total Cases: 200
+#> Test Value : 52.23
+#> Cases < Test Value: 115
+#> Cases > Test Value: 85
+#> Number of Runs: 93
+#> Expected Runs: 98.75
+#> Variance (Runs): 47.52418
+#> z Statistic: -0.8340854
+#> p-value: 0.4042329
+
+infer_runs_test ( hsb , read , threshold = 0 )
+#> Runs Test
+#> Total Cases: 200
+#> Test Value : 0
+#> Cases < Test Value: 0
+#> Cases > Test Value: 200
+#> Number of Runs: 1
+#> Expected Runs: 1
+#> Variance (Runs): 0
+#> z Statistic: NaN
+#> p-value: NaN
+
+
diff --git a/docs/reference/infer_ts_ind_ttest.html b/docs/reference/infer_ts_ind_ttest.html
index 1bb3b61..c5715ae 100644
--- a/docs/reference/infer_ts_ind_ttest.html
+++ b/docs/reference/infer_ts_ind_ttest.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,14 +140,14 @@
Two Independent Sample t Test
there is statistical evidence that the associated population means are significantly different.
- infer_ts_ind_ttest (
- data ,
- x ,
- y ,
- confint = 0.95 ,
- alternative = c ("both" , "less" , "greater" , "all" ),
- ...
-)
+ infer_ts_ind_ttest (
+ data ,
+ x ,
+ y ,
+ confint = 0.95 ,
+ alternative = c ( "both" , "less" , "greater" , "all" ) ,
+ ...
+)
Arguments
@@ -231,139 +231,147 @@ See a
Examples
- # lower tail
-infer_ts_ind_ttest (hsb , female , write , alternative = 'less' )
#> Group Statistics
-#> -----------------------------------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> 0 91 50.121 1.080 10.305 47.97539 52.26661
-#> 1 109 54.991 0.779 8.134 53.44689 56.53511
-#> -----------------------------------------------------------------------------
-#> combined 200 52.775 0.67 9.479 51.45379 54.09621
-#> -----------------------------------------------------------------------------
-#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
-#> -----------------------------------------------------------------------------
-#>
-#> Independent Samples Test
-#> ------------------------
-#>
-#> Ho: mean(0) - mean(1) = diff = 0
-#> Ha: diff < 0
-#>
-#> ---------------------------------------------------------------------
-#> Variable Method Variances DF t Value P < t
-#> ---------------------------------------------------------------------
-#> write Pooled Equal 198 -3.7341 0.0001
-#> write Satterthwaite Unequal 170 -3.6564 0.0002
-#> ---------------------------------------------------------------------
-#>
-#> Test for Equality of Variances
-#> ---------------------------------------------------------------
-#> Variable Method Num DF Den DF F Value P > F
-#> ---------------------------------------------------------------
-#> write Folded F 90 108 1.605 0.0188
-#> ---------------------------------------------------------------
-# upper tail
-infer_ts_ind_ttest (hsb , female , write , alternative = 'greater' )
#> Group Statistics
-#> -----------------------------------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> 0 91 50.121 1.080 10.305 47.97539 52.26661
-#> 1 109 54.991 0.779 8.134 53.44689 56.53511
-#> -----------------------------------------------------------------------------
-#> combined 200 52.775 0.67 9.479 51.45379 54.09621
-#> -----------------------------------------------------------------------------
-#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
-#> -----------------------------------------------------------------------------
-#>
-#> Independent Samples Test
-#> ------------------------
-#>
-#> Ho: mean(0) - mean(1) = diff = 0
-#> Ha: diff > 0
-#>
-#> ---------------------------------------------------------------------
-#> Variable Method Variances DF t Value P > t
-#> ---------------------------------------------------------------------
-#> write Pooled Equal 198 -3.7341 0.9999
-#> write Satterthwaite Unequal 170 -3.6564 0.9998
-#> ---------------------------------------------------------------------
-#>
-#> Test for Equality of Variances
-#> ---------------------------------------------------------------
-#> Variable Method Num DF Den DF F Value P > F
-#> ---------------------------------------------------------------
-#> write Folded F 90 108 1.605 0.0188
-#> ---------------------------------------------------------------
-# both tails
-infer_ts_ind_ttest (hsb , female , write , alternative = 'both' )
#> Group Statistics
-#> -----------------------------------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> 0 91 50.121 1.080 10.305 47.97539 52.26661
-#> 1 109 54.991 0.779 8.134 53.44689 56.53511
-#> -----------------------------------------------------------------------------
-#> combined 200 52.775 0.67 9.479 51.45379 54.09621
-#> -----------------------------------------------------------------------------
-#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
-#> -----------------------------------------------------------------------------
-#>
-#> Independent Samples Test
-#> ------------------------
-#>
-#> Ho: mean(0) - mean(1) = diff = 0
-#> Ha: diff ~= 0
-#>
-#> ---------------------------------------------------------------------
-#> Variable Method Variances DF t Value P > |t|
-#> ---------------------------------------------------------------------
-#> write Pooled Equal 198 -3.7341 0.0002
-#> write Satterthwaite Unequal 170 -3.6564 0.0003
-#> ---------------------------------------------------------------------
-#>
-#> Test for Equality of Variances
-#> ---------------------------------------------------------------
-#> Variable Method Num DF Den DF F Value P > F
-#> ---------------------------------------------------------------
-#> write Folded F 90 108 1.605 0.0188
-#> ---------------------------------------------------------------
-# all tails
-infer_ts_ind_ttest (hsb , female , write , alternative = 'all' )
#> Group Statistics
-#> -----------------------------------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> -----------------------------------------------------------------------------
-#> 0 91 50.121 1.080 10.305 47.97539 52.26661
-#> 1 109 54.991 0.779 8.134 53.44689 56.53511
-#> -----------------------------------------------------------------------------
-#> combined 200 52.775 0.67 9.479 51.45379 54.09621
-#> -----------------------------------------------------------------------------
-#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
-#> -----------------------------------------------------------------------------
-#>
-#> Independent Samples Test
-#> ------------------------
-#>
-#> Ho: mean(0) - mean(1) = diff = 0
-#>
-#> Ha: diff < 0 Ha: diff ~= 0 Ha: diff > 0
-#>
-#> Pooled
-#> ------------------------------------------------------------------------
-#> t = -3.7341 t = -3.7341 t = -3.7341
-#> P < t = 0.0001 P > |t| = 0.0002 P > t = 0.9999
-#>
-#> Satterthwaite
-#> ------------------------------------------------------------------------
-#> t = -3.6564 t = -3.6564 t = -3.6564
-#> P < t = 0.0002 P > |t| = 0.0003 P > t = 0.9998
-#>
-#>
-#> Test for Equality of Variances
-#> ---------------------------------------------------------------
-#> Variable Method Num DF Den DF F Value P > F
-#> ---------------------------------------------------------------
-#> write Folded F 90 108 1.605 0.0188
-#> ---------------------------------------------------------------
+ # lower tail
+infer_ts_ind_ttest ( hsb , female , write , alternative = 'less' )
+#> Group Statistics
+#> -----------------------------------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> 0 91 50.121 1.080 10.305 47.97539 52.26661
+#> 1 109 54.991 0.779 8.134 53.44689 56.53511
+#> -----------------------------------------------------------------------------
+#> combined 200 52.775 0.67 9.479 51.45379 54.09621
+#> -----------------------------------------------------------------------------
+#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
+#> -----------------------------------------------------------------------------
+#>
+#> Independent Samples Test
+#> ------------------------
+#>
+#> Ho: mean(0) - mean(1) = diff = 0
+#> Ha: diff < 0
+#>
+#> ---------------------------------------------------------------------
+#> Variable Method Variances DF t Value P < t
+#> ---------------------------------------------------------------------
+#> write Pooled Equal 198 -3.7341 0.0001
+#> write Satterthwaite Unequal 170 -3.6564 0.0002
+#> ---------------------------------------------------------------------
+#>
+#> Test for Equality of Variances
+#> ---------------------------------------------------------------
+#> Variable Method Num DF Den DF F Value P > F
+#> ---------------------------------------------------------------
+#> write Folded F 90 108 1.605 0.0188
+#> ---------------------------------------------------------------
+
+# upper tail
+infer_ts_ind_ttest ( hsb , female , write , alternative = 'greater' )
+#> Group Statistics
+#> -----------------------------------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> 0 91 50.121 1.080 10.305 47.97539 52.26661
+#> 1 109 54.991 0.779 8.134 53.44689 56.53511
+#> -----------------------------------------------------------------------------
+#> combined 200 52.775 0.67 9.479 51.45379 54.09621
+#> -----------------------------------------------------------------------------
+#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
+#> -----------------------------------------------------------------------------
+#>
+#> Independent Samples Test
+#> ------------------------
+#>
+#> Ho: mean(0) - mean(1) = diff = 0
+#> Ha: diff > 0
+#>
+#> ---------------------------------------------------------------------
+#> Variable Method Variances DF t Value P > t
+#> ---------------------------------------------------------------------
+#> write Pooled Equal 198 -3.7341 0.9999
+#> write Satterthwaite Unequal 170 -3.6564 0.9998
+#> ---------------------------------------------------------------------
+#>
+#> Test for Equality of Variances
+#> ---------------------------------------------------------------
+#> Variable Method Num DF Den DF F Value P > F
+#> ---------------------------------------------------------------
+#> write Folded F 90 108 1.605 0.0188
+#> ---------------------------------------------------------------
+
+# both tails
+infer_ts_ind_ttest ( hsb , female , write , alternative = 'both' )
+#> Group Statistics
+#> -----------------------------------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> 0 91 50.121 1.080 10.305 47.97539 52.26661
+#> 1 109 54.991 0.779 8.134 53.44689 56.53511
+#> -----------------------------------------------------------------------------
+#> combined 200 52.775 0.67 9.479 51.45379 54.09621
+#> -----------------------------------------------------------------------------
+#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
+#> -----------------------------------------------------------------------------
+#>
+#> Independent Samples Test
+#> ------------------------
+#>
+#> Ho: mean(0) - mean(1) = diff = 0
+#> Ha: diff ~= 0
+#>
+#> ---------------------------------------------------------------------
+#> Variable Method Variances DF t Value P > |t|
+#> ---------------------------------------------------------------------
+#> write Pooled Equal 198 -3.7341 0.0002
+#> write Satterthwaite Unequal 170 -3.6564 0.0003
+#> ---------------------------------------------------------------------
+#>
+#> Test for Equality of Variances
+#> ---------------------------------------------------------------
+#> Variable Method Num DF Den DF F Value P > F
+#> ---------------------------------------------------------------
+#> write Folded F 90 108 1.605 0.0188
+#> ---------------------------------------------------------------
+
+# all tails
+infer_ts_ind_ttest ( hsb , female , write , alternative = 'all' )
+#> Group Statistics
+#> -----------------------------------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> -----------------------------------------------------------------------------
+#> 0 91 50.121 1.080 10.305 47.97539 52.26661
+#> 1 109 54.991 0.779 8.134 53.44689 56.53511
+#> -----------------------------------------------------------------------------
+#> combined 200 52.775 0.67 9.479 51.45379 54.09621
+#> -----------------------------------------------------------------------------
+#> diff 200 -4.87 1.304 9.231 -7.42623 -2.31377
+#> -----------------------------------------------------------------------------
+#>
+#> Independent Samples Test
+#> ------------------------
+#>
+#> Ho: mean(0) - mean(1) = diff = 0
+#>
+#> Ha: diff < 0 Ha: diff ~= 0 Ha: diff > 0
+#>
+#> Pooled
+#> ------------------------------------------------------------------------
+#> t = -3.7341 t = -3.7341 t = -3.7341
+#> P < t = 0.0001 P > |t| = 0.0002 P > t = 0.9999
+#>
+#> Satterthwaite
+#> ------------------------------------------------------------------------
+#> t = -3.6564 t = -3.6564 t = -3.6564
+#> P < t = 0.0002 P > |t| = 0.0003 P > t = 0.9998
+#>
+#>
+#> Test for Equality of Variances
+#> ---------------------------------------------------------------
+#> Variable Method Num DF Den DF F Value P > F
+#> ---------------------------------------------------------------
+#> write Folded F 90 108 1.605 0.0188
+#> ---------------------------------------------------------------
+
diff --git a/docs/reference/infer_ts_paired_ttest.html b/docs/reference/infer_ts_paired_ttest.html
index dd7c54b..2db5851 100644
--- a/docs/reference/infer_ts_paired_ttest.html
+++ b/docs/reference/infer_ts_paired_ttest.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,13 +140,13 @@
Paired t test
same mean, assuming paired data.
- infer_ts_paired_ttest (
- data ,
- x ,
- y ,
- confint = 0.95 ,
- alternative = c ("both" , "less" , "greater" , "all" )
-)
+ infer_ts_paired_ttest (
+ data ,
+ x ,
+ y ,
+ confint = 0.95 ,
+ alternative = c ( "both" , "less" , "greater" , "all" )
+)
Arguments
@@ -214,109 +214,117 @@ See a
Examples
- # lower tail
-infer_ts_paired_ttest (hsb , read , write , alternative = 'less' )
#> Paired Samples Statistics
-#> ----------------------------------------------------------------------------
-#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ----------------------------------------------------------------------------
-#> read 200 52.23 0.7249921 10.25294 50.8 53.66
-#> write 200 52.775 0.6702372 9.478586 51.45 54.1
-#> ----------------------------------------------------------------------------
-#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
-#> ----------------------------------------------------------------------------
-#>
-#> Paired Samples Correlations
-#> -------------------------------------------
-#> Variables Obs Correlation Sig.
-#> read & write 200 0.60 0
-#> -------------------------------------------
-#>
-#> Paired Samples Test
-#> -------------------
-#> Ho: mean(read - write) = 0
-#> Ha: mean(read - write) < 0
-#>
-#> ----------------------------------------
-#> Variables t df Sig.
-#> ----------------------------------------
-#> read - write -0.8673 199 0.193
-#> ----------------------------------------
-# upper tail
-infer_ts_paired_ttest (hsb , read , write , alternative = 'greater' )
#> Paired Samples Statistics
-#> ----------------------------------------------------------------------------
-#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ----------------------------------------------------------------------------
-#> read 200 52.23 0.7249921 10.25294 50.8 53.66
-#> write 200 52.775 0.6702372 9.478586 51.45 54.1
-#> ----------------------------------------------------------------------------
-#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
-#> ----------------------------------------------------------------------------
-#>
-#> Paired Samples Correlations
-#> -------------------------------------------
-#> Variables Obs Correlation Sig.
-#> read & write 200 0.60 0
-#> -------------------------------------------
-#>
-#> Paired Samples Test
-#> -------------------
-#> Ho: mean(read - write) = 0
-#> Ha: mean(read - write) > 0
-#>
-#> ----------------------------------------
-#> Variables t df Sig.
-#> ----------------------------------------
-#> read - write -0.8673 199 0.807
-#> ----------------------------------------
-# both tails
-infer_ts_paired_ttest (hsb , read , write , alternative = 'both' )
#> Paired Samples Statistics
-#> ----------------------------------------------------------------------------
-#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ----------------------------------------------------------------------------
-#> read 200 52.23 0.7249921 10.25294 50.8 53.66
-#> write 200 52.775 0.6702372 9.478586 51.45 54.1
-#> ----------------------------------------------------------------------------
-#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
-#> ----------------------------------------------------------------------------
-#>
-#> Paired Samples Correlations
-#> -------------------------------------------
-#> Variables Obs Correlation Sig.
-#> read & write 200 0.60 0
-#> -------------------------------------------
-#>
-#> Paired Samples Test
-#> -------------------
-#> Ho: mean(read - write) = 0
-#> Ha: mean(read - write) ~= 0
-#>
-#> ----------------------------------------
-#> Variables t df Sig.
-#> ----------------------------------------
-#> read - write -0.8673 199 0.387
-#> ----------------------------------------
-# all tails
-infer_ts_paired_ttest (hsb , read , write , alternative = 'all' )
#> Paired Samples Statistics
-#> ----------------------------------------------------------------------------
-#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
-#> ----------------------------------------------------------------------------
-#> read 200 52.23 0.7249921 10.25294 50.8 53.66
-#> write 200 52.775 0.6702372 9.478586 51.45 54.1
-#> ----------------------------------------------------------------------------
-#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
-#> ----------------------------------------------------------------------------
-#>
-#> Paired Samples Correlations
-#> -------------------------------------------
-#> Variables Obs Correlation Sig.
-#> read & write 200 0.60 0
-#> -------------------------------------------
-#>
-#> Ho: mean(read - write) = mean(diff) = 0
-#>
-#> Ha: mean(diff) < 0 Ha: mean(diff) ~= 0 Ha: mean(diff) > 0
-#> t = -0.8673 t = -0.8673 t = -0.8673
-#> P < t = 0.193 P > |t| = 0.387 P > t = 0.807
+ # lower tail
+infer_ts_paired_ttest ( hsb , read , write , alternative = 'less' )
+#> Paired Samples Statistics
+#> ----------------------------------------------------------------------------
+#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ----------------------------------------------------------------------------
+#> read 200 52.23 0.7249921 10.25294 50.8 53.66
+#> write 200 52.775 0.6702372 9.478586 51.45 54.1
+#> ----------------------------------------------------------------------------
+#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
+#> ----------------------------------------------------------------------------
+#>
+#> Paired Samples Correlations
+#> -------------------------------------------
+#> Variables Obs Correlation Sig.
+#> read & write 200 0.60 0
+#> -------------------------------------------
+#>
+#> Paired Samples Test
+#> -------------------
+#> Ho: mean(read - write) = 0
+#> Ha: mean(read - write) < 0
+#>
+#> ----------------------------------------
+#> Variables t df Sig.
+#> ----------------------------------------
+#> read - write -0.8673 199 0.193
+#> ----------------------------------------
+
+# upper tail
+infer_ts_paired_ttest ( hsb , read , write , alternative = 'greater' )
+#> Paired Samples Statistics
+#> ----------------------------------------------------------------------------
+#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ----------------------------------------------------------------------------
+#> read 200 52.23 0.7249921 10.25294 50.8 53.66
+#> write 200 52.775 0.6702372 9.478586 51.45 54.1
+#> ----------------------------------------------------------------------------
+#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
+#> ----------------------------------------------------------------------------
+#>
+#> Paired Samples Correlations
+#> -------------------------------------------
+#> Variables Obs Correlation Sig.
+#> read & write 200 0.60 0
+#> -------------------------------------------
+#>
+#> Paired Samples Test
+#> -------------------
+#> Ho: mean(read - write) = 0
+#> Ha: mean(read - write) > 0
+#>
+#> ----------------------------------------
+#> Variables t df Sig.
+#> ----------------------------------------
+#> read - write -0.8673 199 0.807
+#> ----------------------------------------
+
+# both tails
+infer_ts_paired_ttest ( hsb , read , write , alternative = 'both' )
+#> Paired Samples Statistics
+#> ----------------------------------------------------------------------------
+#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ----------------------------------------------------------------------------
+#> read 200 52.23 0.7249921 10.25294 50.8 53.66
+#> write 200 52.775 0.6702372 9.478586 51.45 54.1
+#> ----------------------------------------------------------------------------
+#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
+#> ----------------------------------------------------------------------------
+#>
+#> Paired Samples Correlations
+#> -------------------------------------------
+#> Variables Obs Correlation Sig.
+#> read & write 200 0.60 0
+#> -------------------------------------------
+#>
+#> Paired Samples Test
+#> -------------------
+#> Ho: mean(read - write) = 0
+#> Ha: mean(read - write) ~= 0
+#>
+#> ----------------------------------------
+#> Variables t df Sig.
+#> ----------------------------------------
+#> read - write -0.8673 199 0.387
+#> ----------------------------------------
+
+# all tails
+infer_ts_paired_ttest ( hsb , read , write , alternative = 'all' )
+#> Paired Samples Statistics
+#> ----------------------------------------------------------------------------
+#> Variables Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
+#> ----------------------------------------------------------------------------
+#> read 200 52.23 0.7249921 10.25294 50.8 53.66
+#> write 200 52.775 0.6702372 9.478586 51.45 54.1
+#> ----------------------------------------------------------------------------
+#> diff 200 -0.545 0.6283822 8.886666 -1.78 0.69
+#> ----------------------------------------------------------------------------
+#>
+#> Paired Samples Correlations
+#> -------------------------------------------
+#> Variables Obs Correlation Sig.
+#> read & write 200 0.60 0
+#> -------------------------------------------
+#>
+#> Ho: mean(read - write) = mean(diff) = 0
+#>
+#> Ha: mean(diff) < 0 Ha: mean(diff) ~= 0 Ha: mean(diff) > 0
+#> t = -0.8673 t = -0.8673 t = -0.8673
+#> P < t = 0.193 P > |t| = 0.387 P > t = 0.807
+
diff --git a/docs/reference/infer_ts_prop_test.html b/docs/reference/infer_ts_prop_test.html
index 9fa3b58..cea0f4a 100644
--- a/docs/reference/infer_ts_prop_test.html
+++ b/docs/reference/infer_ts_prop_test.html
@@ -74,7 +74,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -114,7 +114,7 @@
-
+
@@ -132,7 +132,7 @@
@@ -142,29 +142,29 @@
Two Sample Test of Proportion
within two independent groups or two samples have the same proportion.
- infer_ts_prop_test (
- data ,
- var1 ,
- var2 ,
- alternative = c ("both" , "less" , "greater" , "all" ),
- ...
-)
-
-infer_ts_prop_grp (
- data ,
- var ,
- group ,
- alternative = c ("both" , "less" , "greater" , "all" )
-)
-
-infer_ts_prop_calc (
- n1 ,
- n2 ,
- p1 ,
- p2 ,
- alternative = c ("both" , "less" , "greater" , "all" ),
- ...
-)
+ infer_ts_prop_test (
+ data ,
+ var1 ,
+ var2 ,
+ alternative = c ( "both" , "less" , "greater" , "all" ) ,
+ ...
+)
+
+infer_ts_prop_group (
+ data ,
+ var ,
+ group ,
+ alternative = c ( "both" , "less" , "greater" , "all" )
+)
+
+infer_ts_prop_calc (
+ n1 ,
+ n2 ,
+ p1 ,
+ p2 ,
+ alternative = c ( "both" , "less" , "greater" , "all" ) ,
+ ...
+)
Arguments
@@ -191,14 +191,6 @@ Arg
...
additional arguments passed to or from other methods
-
- var
- factor; column in data
-
-
- group
- factor; column in data
-
n1
sample 1 size
@@ -215,6 +207,14 @@ Arg
p2
sample 2 proportion
+
+ var
+ factor; column in data
+
+
+ group
+ factor; column in data
+
Value
@@ -234,9 +234,9 @@ References
Sheskin, D. J. 2007. Handbook of Parametric and Nonparametric
@@ -246,33 +246,39 @@
See a
Examples
- # using variables
-# lower tail
-infer_ts_prop_test (treatment , treatment1 , treatment2 ,
-alternative = 'less' )
#> Test Statistics
-#> -----------------------------
-#> Total Observations 100
-#> z 0.403
-#> Pr(Z < z) 0.656
-#>
-# using groups
-# lower tail
-infer_ts_prop_grp (treatment2 , outcome , female ,
-alternative = 'less' )
#> Test Statistics
-#> -----------------------------
-#> Total Observations 200
-#> z 0.351
-#> Pr(Z < z) 0.637
-#>
-# using sample size and proportions
-# lower tail
-infer_ts_prop_calc (n1 = 30 , n2 = 25 , p1 = 0.3 , p2 = 0.5 , alternative = 'less' )
#> Test Statistics
-#> ------------------------------
-#> Total Observations 55
-#> z -1.514
-#> Pr(Z < z) 0.065
-#>
-
+ # using variables
+# lower tail
+infer_ts_prop_test ( treatment , treatment1 , treatment2 ,
+alternative = 'less' )
+#> Test Statistics
+#> -----------------------------
+#> Total Observations 100
+#> z 0.403
+#> Pr(Z < z) 0.656
+#>
+
+# using groups
+# lower tail
+infer_ts_prop_group ( treatment2 , outcome , female ,
+alternative = 'less' )
+#> Test Statistics
+#> -----------------------------
+#> Total Observations 200
+#> z 0.351
+#> Pr(Z < z) 0.637
+#>
+
+# using sample size and proportions
+# lower tail
+infer_ts_prop_calc ( n1 = 30 , n2 = 25 , p1 = 0.3 , p2 = 0.5 , alternative = 'less' )
+#> Test Statistics
+#> ------------------------------
+#> Total Observations 55
+#> z -1.514
+#> Pr(Z < z) 0.065
+#>
+
+
diff --git a/docs/reference/infer_ts_var_test.html b/docs/reference/infer_ts_var_test.html
index 4f45f75..b2cc4bd 100644
--- a/docs/reference/infer_ts_var_test.html
+++ b/docs/reference/infer_ts_var_test.html
@@ -73,7 +73,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
@@ -113,7 +113,7 @@
-
+
@@ -131,7 +131,7 @@
@@ -140,12 +140,12 @@
Two Sample Variance Comparison Test
deviations (variances).
- infer_ts_var_test (
- data ,
- ... ,
- group_var = NULL ,
- alternative = c ("less" , "greater" , "all" )
-)
+ infer_ts_var_test (
+ data ,
+ ... ,
+ group_var = NULL ,
+ alternative = c ( "less" , "greater" , "all" )
+)
Arguments
@@ -207,53 +207,57 @@ See a
Examples
- # using grouping variable
-infer_ts_var_test (hsb , read , group_var = female , alternative = 'less' )
#> Variance Ratio Test
-#> --------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev.
-#> --------------------------------------------------
-#> 0 91 52.82 1.1 10.51
-#> 1 109 51.73 0.96 10.06
-#> --------------------------------------------------
-#> combined 200 52.23 0.72 10.25
-#> --------------------------------------------------
-#>
-#> Lower Tail Test
-#> ---------------
-#> ratio = sd(0) / (1)
-#> Ho: ratio = 1
-#> Ha: ratio < 1
-#>
-#> Variance Ratio Test
-#> ------------------------------------
-#> F Num DF Den DF p
-#> ------------------------------------
-#> 1.0913 90 108 0.6694
-#> ------------------------------------
-# using two variables
-infer_ts_var_test (hsb , read , write , alternative = 'less' )
#> Variance Ratio Test
-#> --------------------------------------------------
-#> Group Obs Mean Std. Err. Std. Dev.
-#> --------------------------------------------------
-#> read 200 52.23 0.72 10.25
-#> write 200 52.77 0.67 9.48
-#> --------------------------------------------------
-#> combined 400 52.5 0.49 9.86
-#> --------------------------------------------------
-#>
-#> Lower Tail Test
-#> ---------------
-#> ratio = sd(read) / (write)
-#> Ho: ratio = 1
-#> Ha: ratio < 1
-#>
-#> Variance Ratio Test
-#> ------------------------------------
-#> F Num DF Den DF p
-#> ------------------------------------
-#> 1.1701 199 199 0.8656
-#> ------------------------------------
-
+ # using grouping variable
+infer_ts_var_test ( hsb , read , group_var = female , alternative = 'less' )
+#> Variance Ratio Test
+#> --------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev.
+#> --------------------------------------------------
+#> 0 91 52.82 1.1 10.51
+#> 1 109 51.73 0.96 10.06
+#> --------------------------------------------------
+#> combined 200 52.23 0.72 10.25
+#> --------------------------------------------------
+#>
+#> Lower Tail Test
+#> ---------------
+#> ratio = sd(0) / (1)
+#> Ho: ratio = 1
+#> Ha: ratio < 1
+#>
+#> Variance Ratio Test
+#> ------------------------------------
+#> F Num DF Den DF p
+#> ------------------------------------
+#> 1.0913 90 108 0.6694
+#> ------------------------------------
+
+# using two variables
+infer_ts_var_test ( hsb , read , write , alternative = 'less' )
+#> Variance Ratio Test
+#> --------------------------------------------------
+#> Group Obs Mean Std. Err. Std. Dev.
+#> --------------------------------------------------
+#> read 200 52.23 0.72 10.25
+#> write 200 52.77 0.67 9.48
+#> --------------------------------------------------
+#> combined 400 52.5 0.49 9.86
+#> --------------------------------------------------
+#>
+#> Lower Tail Test
+#> ---------------
+#> ratio = sd(read) / (write)
+#> Ho: ratio = 1
+#> Ha: ratio < 1
+#>
+#> Variance Ratio Test
+#> ------------------------------------
+#> F Num DF Den DF p
+#> ------------------------------------
+#> 1.1701 199 199 0.8656
+#> ------------------------------------
+
+
diff --git a/docs/reference/inferr.html b/docs/reference/inferr.html
index 6394ca9..ba748ac 100644
--- a/docs/reference/inferr.html
+++ b/docs/reference/inferr.html
@@ -72,7 +72,7 @@
inferr
- 0.3.1
+ 0.3.1.9000
diff --git a/docs/reference/treatment.html b/docs/reference/treatment.html
index 838bb0c..571b94d 100644
--- a/docs/reference/treatment.html
+++ b/docs/reference/treatment.html
@@ -72,7 +72,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000
diff --git a/docs/reference/treatment2.html b/docs/reference/treatment2.html
index c508030..c107536 100644
--- a/docs/reference/treatment2.html
+++ b/docs/reference/treatment2.html
@@ -72,7 +72,7 @@
inferr
- 0.3.0.9000
+ 0.3.1.9000