id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
R_documentation/7053AUsingRforSignif_93_0.txt
The code above yields the following output
R_documentation/7053AUsingRforSignif_85_0.txt
where ` x ` is a numeric vector that contains the data for one sample and ` y ` is an optional vector that contains data for a second sample, ` alternative ` is a character string that states the alternative hypothesis (which defaults to two-tailed), ` mu ` is either the population's expected mean or the expected diffe...
R_documentation/dctest_19_0.txt
cutpoint
R_documentation/7053AUsingRforSignif_129_0.txt
` # run a two-tailed t-test, setting mu to 0 as the null hypothesis is that the means are the same, and setting paired to TRUE `
R_documentation/R_functions_2_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions # CheckLuhn [ ](https://travis-ci.org/adamjdeacon/checkLuhn) [ ](https://ci.appveyor.com/project/adamjdeacon/checkLuhn) [ ](https://codecov.io/gh/adamjdeac...
R_documentation/testVar_16_0.txt
A design matrix, used to determine the degrees of freedom if ` df ` is missing.
R_documentation/7053AUsingRforSignif_168_0.txt
` data: penny `
R_documentation/7053AUsingRforSignif_89_0.txt
` na2co3 = c(98.71, 98.59, 98.62, 98.44, 98.58) `
R_documentation/7053AUsingRforSignif_200_0.txt
` Wilcoxon rank sum test with continuity correction `
R_documentation/7053AUsingRforSignif_73_0.txt
` F = 1.8726, num df = 6, denom df = 4, p-value = 0.5661 `
R_documentation/7053AUsingRforSignif_139_0.txt
` mean of the differences `
R_documentation/7053AUsingRforSignif_117_0.txt
` alternative hypothesis: true difference in means is not equal to 0 `
R_documentation/7053AUsingRforSignif_60_0.txt
## Using R to Compare Variances
R_documentation/7053AUsingRforSignif_186_0.txt
` Wilcoxon signed rank test `
R_documentation/dctest_43_0.txt
timeout
R_documentation/7053AUsingRforSignif_48_0.txt
2. Sign in * [ Sign in ](https://chem.libretexts.org/Special:UserLogin?returntotitle=Bookshelves%2FAnalytical_Chemistry%2FChemometrics_Using_R_%28Harvey%29%2F07%3A_Testing_the_Significance_of_Data%2F7.05%3A_Using_R_for_Significance_Testing_and_Analysis_of_Variance "Sign in") * [ Forgot password ](https://chem.libretext...
R_documentation/7053AUsingRforSignif_53_0.txt
1. Last updated
R_documentation/7053AUsingRforSignif_12_0.txt
* [ Periodic Table ](https://chem.libretexts.org/?pertable) * [ Physics Constants ](https://chem.libretexts.org/?physconst) * [ Scientific Calculator ](https://chem.libretexts.org/?scientificcal)
R_documentation/dctest_26_0.txt
cutpoint
R_documentation/7053AUsingRforSignif_213_0.txt
We also need to create a vector of character strings that identifies the individual treatments for each element in the vector recovery.
R_documentation/testVar_20_0.txt
The null hypothesis states that the true variance for each gene is equal to ` null ` . Variance estimates should follow a scaled chi-squared distribution on ` df ` degrees of freedom, where the scaling factor is equal to ` null ` divided by ` df ` . This can be used to compute a p-value for ` total ` being greater than...
R_documentation/dctest_53_0.txt
Powered by [ DataCamp ](https://www.datacamp.com/)
R_documentation/dctest_20_0.txt
The cutpoint used.
R_documentation/7053AUsingRforSignif_140_0.txt
` -2.245455 `
R_documentation/7053AUsingRforSignif_243_0.txt
This page titled [ 7.5: Using R for Significance Testing and Analysis of Variance ](https://chem.libretexts.org/Bookshelves/Analytical_Chemistry/Chemometrics_Using_R_\(Harvey\)/07%3A_Testing_the_Significance_of_Data/7.05%3A_Using_R_for_Significance_Testing_and_Analysis_of_Variance) is shared under a [ CC BY-NC-SA 4.0 ]...
R_documentation/7053AUsingRforSignif_84_0.txt
` paired = FALSE, var.equal = FALSE, conf.level = 0.95, ...) `
R_documentation/7053AUsingRforSignif_101_0.txt
` mean of x `
R_documentation/7053AUsingRforSignif_181_0.txt
` electrochemical = c(132.3, 91.0, 73.6, 58.2, 104.2, 49.9, 82.1, 154.1, 73.4, 38.1, 60.1) `
R_documentation/testVar_23_0.txt
## References
R_documentation/dctest_12_0.txt
The estimated log difference in heights of the density curve at the cutpoint.
R_documentation/7053AUsingRforSignif_96_0.txt
` t = -3.9522, df = 4, p-value = 0.01679 `
R_documentation/7053AUsingRforSignif_156_0.txt
` data: penny Q = 0.88235, p-value < 2.2e-16 `
R_documentation/dctest_11_0.txt
theta
R_documentation/7053AUsingRforSignif_127_0.txt
` microbiological = c(129.5, 89.6, 76.6, 52.2, 110.8, 50.4, 72.4, 141.4, 75.0, 34.1, 60.3) `
R_documentation/7053AUsingRforSignif_161_0.txt
` gurbbs.test(x, type, two.sided) `
R_documentation/7053AUsingRforSignif_5_0.txt
* [ login Login ](https://chem.libretexts.org/Special:Userlogin?readerView#tab=login) * [ how_to_reg Request Instructor Account ](https://register.libretexts.org/) * [ hub Instructor Commons ](https://commons.libretexts.org/)
R_documentation/7053AUsingRforSignif_211_0.txt
` c = c(90, 92, 94) `
R_documentation/7053AUsingRforSignif_228_0.txt
where ` x ` is an object that contains the results of an analysis of variance.
R_documentation/7053AUsingRforSignif_15_0.txt
* [ Tools expand_more ](https://chem.libretexts.org/?tools)
R_documentation/dctest_16_0.txt
binsize
R_documentation/7053AUsingRforSignif_120_0.txt
` sample estimates: `
R_documentation/7053AUsingRforSignif_197_0.txt
` # that the means are the same, and setting paired to TRUE `
R_documentation/7053AUsingRforSignif_125_0.txt
Let's use R on the data from Example 7.2.1, which compares two methods for determining the concentration of the antibiotic monensin in fermentation vats.
R_documentation/7053AUsingRforSignif_13_0.txt
* [ Reference expand_more ](https://chem.libretexts.org/?references)
R_documentation/varTesthtml_10_0.txt
character string indicating the kind of alternative hypothesis. The possible values are ` "two.sided" ` (the default), ` "greater" ` , and ` "less" ` .
R_documentation/dctest_35_0.txt
ext.out
R_documentation/7053AUsingRforSignif_189_0.txt
` alternative hypothesis: true location shift is not equal to 0 `
R_documentation/7053AUsingRforSignif_191_0.txt
### Using R to Complete a Wilcoxson Rank Sum Test
R_documentation/dctest_33_0.txt
plot
R_documentation/7053AUsingRforSignif_50_0.txt
1. [ Home ](https://chem.libretexts.org/) 2. [ Bookshelves ](https://chem.libretexts.org/Bookshelves) 3. [ Analytical Chemistry ](https://chem.libretexts.org/Bookshelves/Analytical_Chemistry) 4. [ Chemometrics Using R (Harvey) ](https://chem.libretexts.org/Bookshelves/Analytical_Chemistry/Chemometrics_Using_R_\(Harvey\...
R_documentation/7053AUsingRforSignif_92_0.txt
` t.test(x = na2co3, alternative = "two.sided", mu = 98.76, conf.level = 0.95) `
R_documentation/7053AUsingRforSignif_79_0.txt
Two parts of this output lead us to retain the null hypothesis of equal variances. First, the reported _p_ -value of 0.5661 is larger than our critical value for \\(\alpha\\) of 0.05, and second, the 95% confidence interval for the ratio of the variances, which runs from 0.204 to 11.7 includes the null hypothesis that ...
R_documentation/varTesthtml_23_0.txt
* Perform a hypothesis test for the population variance based on the chi-squared statistic, assuming the underlying population is normal.
R_documentation/varTesthtml_5_0.txt
varTest(x, alternative = "two.sided", conf.level = 0.95, sigma.squared = 1, data.name = NULL)
R_documentation/dctest_0_0.txt
[ RDocumentation ](/)
R_documentation/dctest_44_0.txt
A non-negative numerical value specifying the maximum number of seconds that expressions in the function are allowed to run. The default is 30. Specify ` Inf ` to run all expressions to completion.
R_documentation/7053AUsingRforSignif_247_0.txt
1. Article type [ Section or Page ](https://chem.libretexts.org/Special:Search?tags=article%3Atopic)
R_documentation/testVar_26_0.txt
` [ trendVar ](/link/trendVar?package=scran&version=1.0.3) ` , ` [ decomposeVar ](/link/decomposeVar?package=scran&version=1.0.3) `
R_documentation/varTesthtml_14_0.txt
a numeric scalar indicating the hypothesized value of the variance. The default value is ` sigma.squared=1 ` .
R_documentation/testVar_17_0.txt
## Value
R_documentation/7053AUsingRforSignif_152_0.txt
` penny = c(3.067, 2.514, 3.094, 3.049, 3.048, 3.109, 3.039, 3.079, 3.102) `
R_documentation/7053AUsingRforSignif_165_0.txt
` grubbs.test(x = penny, two.sided = FALSE, type = 10) `
R_documentation/7053AUsingRforSignif_163_0.txt
Let's use R on the data from Example 7.2.7, which considers the masses of a set of United States pennies.
R_documentation/dctest_50_0.txt
set.seed(12345) # No discontinuity x <- runif(1000, -1, 1) dc_test(x, 0)
R_documentation/7053AUsingRforSignif_239_0.txt
We also can view the results of the TukeyHSD analysis visually by passing it to R's ` plot() ` function.
R_documentation/7053AUsingRforSignif_3_0.txt
search Search build_circle Toolbar fact_check Homework cancel Exit Reader Mode
R_documentation/7053AUsingRforSignif_232_0.txt
` Fit: aov(formula = recovery ~ treatment) `
R_documentation/7053AUsingRforSignif_233_0.txt
` $treatment `
R_documentation/testVar_9_0.txt
## Arguments
R_documentation/7053AUsingRforSignif_180_0.txt
` microbiological = c(129.5, 89.6, 76.6, 52.2, 110.8, 50.4, 72.4, 141.4, 75.0, 34.1, 60.3) `
R_documentation/7053AUsingRforSignif_11_0.txt
* [ Resources expand_more ](https://chem.libretexts.org/?resources)
R_documentation/varTesthtml_15_0.txt
` data.name ` |
R_documentation/dctest_5_0.txt
## Description
R_documentation/7053AUsingRforSignif_257_0.txt
1. © Copyright 2024 Chemistry LibreTexts 2. [ Powered by CXone Expert ® ](https://mindtouch.com/demo "MindTouch")
R_documentation/7053AUsingRforSignif_131_0.txt
The code above yields the following output
R_documentation/7053AUsingRforSignif_35_0.txt
Anonymous User
R_documentation/7053AUsingRforSignif_202_0.txt
` W = 16.5, p-value = 0.8541 `
R_documentation/varTesthtml_9_0.txt
---|--- ` alternative ` |
R_documentation/7053AUsingRforSignif_103_0.txt
Two parts of this output lead us to reject the null hypothesis of equal variances. First, the reported _p_ -value of 0.01679 is less than our critical value for \\(\alpha\\) of 0.05, and second, the 95% confidence interval for the experimental mean of 98.588, which runs from 98.467 to 98.709, does not includes the null...
R_documentation/7053AUsingRforSignif_14_0.txt
* [ Reference & Cite ](https://chem.libretexts.org/?refmodal)
R_documentation/7053AUsingRforSignif_175_0.txt
` paired = FALSE, conf.level = 0.95, ...) `
R_documentation/7053AUsingRforSignif_17_0.txt
* [ Get Help ](https://chem.libretexts.org/?helpmodal) * [ Feedback ](https://chem.libretexts.org/?feedback) * [ Readability ](https://chem.libretexts.org/?readability)
R_documentation/varTesthtml_32_0.txt
Zar, J.H. (2010). _Biostatistical Analysis_ . Fifth Edition. Prentice-Hall, Upper Saddle River, NJ.
R_documentation/dctest_15_0.txt
The p-value of the test. A p-value below the significance threshold indicates that the user can reject the null hypothesis of no sorting.
R_documentation/7053AUsingRforSignif_146_0.txt
You only need to install the package once, but you must use ` library() ` to make the package available when you begin a new R session.
R_documentation/dctest_32_0.txt
A logical value indicating whether to print diagnostic information to the terminal. The default is ` TRUE ` .
R_documentation/testVar_27_0.txt
## Examples
R_documentation/7053AUsingRforSignif_184_0.txt
` wilcox.test(x = microbiological, y = electrochemical, alternative = "two.sided", mu = 0, paired = TRUE, conf.level = 0.95) `
R_documentation/varTesthtml_1_0.txt
## One-Sample Chi-Squared Test on Variance
R_documentation/varTesthtml_34_0.txt
` [ var.test ](../../stats/html/var.test.html) ` , ` [ varGroupTest ](../../EnvStats/help/varGroupTest.html) ` .
R_documentation/7053AUsingRforSignif_207_0.txt
## Using R to Complete an Analysis of Variance
R_documentation/7053AUsingRforSignif_166_0.txt
The code above yields the following output
R_documentation/7053AUsingRforSignif_31_0.txt
222325
R_documentation/7053AUsingRforSignif_32_0.txt
admin
R_documentation/7053AUsingRforSignif_244_0.txt
1. Back to top 2. * [ 7.4: Non-Parametric Significance Tests ](https://chem.libretexts.org/Bookshelves/Analytical_Chemistry/Chemometrics_Using_R_\(Harvey\)/07%3A_Testing_the_Significance_of_Data/7.04%3A_Non-Parametric_Significance_Tests "7.4: Non-Parametric Significance Tests") * [ 7.6: Exercises ](https://chem.l...
R_documentation/7053AUsingRforSignif_241_0.txt
![clipboard_efb74f4ba69090fcd0358d3b224ac5960.png](https://chem.libretexts.org/@api/deki/files/276020/clipboard_efb74f4ba69090fcd0358d3b224ac5960.png?revision=1) Figure \\(\PageIndex{1}\\): Plot of the TukeyHSD results. The horizontal segments show the lower boundary and the upper boundary for the confidence interval a...
R_documentation/dctest_9_0.txt
## Value
R_documentation/7053AUsingRforSignif_177_0.txt
### Using R to Complete a Wilcoxson Signed Rank Test
R_documentation/varTesthtml_2_0.txt
### Description
R_documentation/dctest_4_0.txt
# dc_test: McCrary Sorting Test