id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
R_documentation/dctest_23_0.txt | ## Arguments | |
R_documentation/7053AUsingRforSignif_225_0.txt | Note that what we earlier called the between variance is identified here as
the variance due to the treatments, and that we earlier called the within
variance is identified her as the residual variance. As we saw in Example
7.3.1, the value for _F exp _ is significantly greater than the critical
value for _F_ at \\(\a... | |
R_documentation/7053AUsingRforSignif_142_0.txt | ## Using R to Detect Outliers | |
R_documentation/dctest_2_0.txt | Search all packages and functions | |
R_documentation/7053AUsingRforSignif_111_0.txt | ` # run a two-sided t-test, setting mu to 0 as the null hypothesis is that the
means are the same, and setting var.equal to TRUE ` | |
R_documentation/7053AUsingRforSignif_155_0.txt | ` Dixon test for outliers ` | |
R_documentation/testVar_0_0.txt | [ RDocumentation ](/) | |
R_documentation/7053AUsingRforSignif_66_0.txt | ` sample1 = c(3.080, 3.094, 3.107, 3.056, 3.112, 3.174, 3.198) ` | |
R_documentation/dctest_42_0.txt | A non-negative integer specifying the number of digits to display in all
output. The default is ` max(3, getOption("digits") - 3) ` . | |
R_documentation/7053AUsingRforSignif_41_0.txt | [ 
](https://chem.libretexts.org "Chemistry LibreTexts") | |
R_documentation/7053AUsingRforSignif_8_0.txt | Submit Search | |
R_documentation/7053AUsingRforSignif_198_0.txt | ` wilcox.test(x = lot1, y = lot2, alternative = "two.sided", mu = 0, paired =
FALSE, conf.level = 0.95) ` | |
R_documentation/varTesthtml_12_0.txt | numeric scalar between 0 and 1 indicating the confidence level associated with
the confidence interval for the population variance. The default value is
` conf.level=0.95 ` . | |
R_documentation/testVar_34_0.txt | Powered by [ DataCamp ](https://www.datacamp.com/) | |
R_documentation/dctest_52_0.txt |
Run the code above in your browser using [ DataLab
](https://www.datacamp.com/datalab/preview?_tag=rdocs&rdocsPath=packages%2Frddapp%2Fversions%2F1.3.2%2Ftopics%2Fdc_test&utm_source=r-docs&utm_medium=docs&utm_term=dc_test&utm_content=run_example_in_datalab) | |
R_documentation/7053AUsingRforSignif_162_0.txt | where ` x ` is a numeric vector with the data we are considering, ` type `
defines the specific value(s) that we are testing (we will use ` type = 10 ` ,
which tests for a single outlier on either end of the ranked data), and `
two.sided ` , which indicated whether we use a one-tailed or two-tailed test
(we will use ` ... | |
R_documentation/7053AUsingRforSignif_250_0.txt | License | |
R_documentation/7053AUsingRforSignif_88_0.txt | ` # create vector to store the data ` | |
R_documentation/dctest_17_0.txt | The calculated size of bins for the test. | |
R_documentation/testVar_5_0.txt | ## Description | |
R_documentation/dctest_24_0.txt | runvar | |
R_documentation/testVar_22_0.txt | Note that the test statistic is the (scaled) ratio of ` total ` over ` null `
for each gene. This may not be ideal when ` null ` is small, e.g., for high-
abundance genes, where a high ratio/low p-value may not represent a large
absolute increase in the variance. To avoid detecting irrelevant genes, users
can modify ` ... | |
R_documentation/7053AUsingRforSignif_144_0.txt | ` install.packages("outliers") ` | |
R_documentation/7053AUsingRforSignif_151_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/7053AUsingRforSignif_112_0.txt | ` t.test(x = sample1, y = sample2, alternative = "two.sided", mu = 0,
var.equal = TRUE, conf.level = 0.95) ` | |
R_documentation/7053AUsingRforSignif_171_0.txt | The reported p-value of \\(9.69 \times 10^{-7}\\) is less than our critical
value for \\(\alpha\\) of 0.05, which suggests that the penny with a mass of
2.514 g is drawn from a different population than the other pennies. | |
R_documentation/dctest_31_0.txt | verbose | |
R_documentation/7053AUsingRforSignif_153_0.txt | ` dixon.test(x = penny, two.sided = FALSE, type = 10) ` | |
R_documentation/7053AUsingRforSignif_119_0.txt | ` -0.02403040 0.09580182 ` | |
R_documentation/varTesthtml_26_0.txt | **Note:** For a one-sample test of location, Student's t-test is fairly robust
to departures from normality (i.e., the Type I error rate is maintained), as
long as the sample size is reasonably "large." The chi-squared test on the
population variance, however, is extremely sensitive to departures from
normality. For ex... | |
R_documentation/7053AUsingRforSignif_25_0.txt | { } | |
R_documentation/dctest_37_0.txt | htest | |
R_documentation/7053AUsingRforSignif_74_0.txt | ` alternative hypothesis: true ratio of variances is not equal to 1 ` | |
R_documentation/7053AUsingRforSignif_143_0.txt | The base installation of R does not include tests for outliers, but the `
outliers ` package provided functions for Dixon's Q-test and Grubb's test. To
install the package, use the following lines of code | |
R_documentation/7053AUsingRforSignif_219_0.txt | through the ` summary() ` function | |
R_documentation/7053AUsingRforSignif_123_0.txt | Two parts of this output lead us to retain the null hypothesis of equal means.
First, the reported _p_ -value of 0.2116 is greater than our critical value
for \\(\alpha\\) of 0.05, and second, the 95% confidence interval for the
difference in the experimental means, which runs from -0.0240 to 0.0958,
includes the null ... | |
R_documentation/7053AUsingRforSignif_21_0.txt | [ 
](https://chem.libretexts.org/) | |
R_documentation/7053AUsingRforSignif_176_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/7053AUsingRforSignif_71_0.txt | ` F test to compare two variances ` | |
R_documentation/7053AUsingRforSignif_19_0.txt | ## Error | |
R_documentation/7053AUsingRforSignif_227_0.txt | ` TukeyHSD(x, conf.level = 0.95, ...) ` | |
R_documentation/7053AUsingRforSignif_9_0.txt | * [ Downloads expand_more ](https://chem.libretexts.org/?downloads) | |
R_documentation/varTesthtml_42_0.txt | [Package _EnvStats_ version 2.8.1 [ Index ](00Index.html) ] | |
R_documentation/7053AUsingRforSignif_230_0.txt | ` Tukey multiple comparisons of means ` | |
R_documentation/7053AUsingRforSignif_167_0.txt | ` Grubbs test for one outlier ` | |
R_documentation/7053AUsingRforSignif_38_0.txt | [ "article:topic", "authorname:harveyd", "showtoc:no", "license:ccbyncsa",
"field:achem", "licenseversion:40" ] | |
R_documentation/testVar_4_0.txt | # testVar: Test for significantly large variances | |
R_documentation/varTesthtml_17_0.txt | ### Details | |
R_documentation/7053AUsingRforSignif_40_0.txt | https://chem.libretexts.org/@app/auth/3/login?returnto=https%3A%2F%2Fchem.libretexts.org%2FBookshelves%2FAnalytical_Chemistry%2FChemometrics_Using_R_(Harvey)%2F07%253A_Testing_the_Significance_of_Data%2F7.05%253A_Using_R_for_Significance_Testing_and_Analysis_of_Variance | |
R_documentation/7053AUsingRforSignif_56_0.txt | * 
* [ David Harvey ](http://dpuadweb.depauw.edu/harvey_web/Index.html)
* [ DePauw University ](http://www.depauw.edu/academics/departments-programs/chemistry-and-biochemistry/) | |
R_documentation/7053AUsingRforSignif_132_0.txt | ` Paired t-test ` | |
R_documentation/varTesthtml_33_0.txt | ### See Also | |
R_documentation/7053AUsingRforSignif_36_0.txt | false | |
R_documentation/varTesthtml_21_0.txt | ### Note | |
R_documentation/7053AUsingRforSignif_68_0.txt | ` # run two-sided variance test with alpha = 0.05 and null hypothesis that
variances are equal ` | |
R_documentation/testVar_24_0.txt | Law CW, Chen Y, Shi W and Smyth GK (2014). voom: precision weights unlock
linear model analysis tools for RNA-seq read counts _Genome Biol._ 15(2), R29. | |
R_documentation/7053AUsingRforSignif_255_0.txt | [ no on page ](https://chem.libretexts.org/Special:Search?tags=showtoc%3Ano)
2. Tags | |
R_documentation/testVar_10_0.txt | total | |
R_documentation/7053AUsingRforSignif_62_0.txt | ` var.test(x, y, ratio = 1, alternative = c("two.sided", "less", "greater"),
conf.level = 0.95, ...) ` | |
R_documentation/varTesthtml_41_0.txt |
* * * | |
R_documentation/7053AUsingRforSignif_199_0.txt | The code above yields the following output | |
R_documentation/dctest_10_0.txt | If ` ext.out ` is ` FALSE ` , ` dc_test ` returns a numeric value specifying
the p-value of the McCrary (2008) sorting test. Additional output is enabled
when ` ext.out ` is ` TRUE ` . In this case, ` dc_test ` returns a list with
the following elements: | |
R_documentation/7053AUsingRforSignif_114_0.txt | ` Two Sample t-test ` | |
R_documentation/7053AUsingRforSignif_82_0.txt | The R function for comparing means is ` t.test() ` and takes the following
form | |
R_documentation/7053AUsingRforSignif_206_0.txt | where the value _W_ is the larger of the two ranked sums. The reported _p_
-value of 0.8541 is greater than our critical value for \\(\alpha\\) of 0.05,
which means we do not have evidence to suggest that there is a difference
between the mean values for the two methods. Note: we can ignore the warning
message here as ... | |
R_documentation/7053AUsingRforSignif_105_0.txt | When comparing the means for two samples, we have to be careful to consider
whether the data is unpaired or paired, and for unpaired data we must
determine whether we can pool the variances for the two samples. | |
R_documentation/7053AUsingRforSignif_45_0.txt | 2. 1. Username | |
R_documentation/R_functions_4_0.txt | [ RDocumentation ](/)
Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R
](https://www.datacamp.com/learn/r)
Search all packages and functions
# numDeriv (version 2016.8-1.1)
## Accurate Numerical Derivatives
## Description
Methods for calculating (usually) accurate numerical first and second ... | |
R_documentation/7053AUsingRforSignif_133_0.txt | ` data: microbiological and electrochemical ` | |
R_documentation/7053AUsingRforSignif_95_0.txt | ` data: na2co3 ` | |
R_documentation/dctest_8_0.txt | dc_test(
runvar,
cutpoint,
bin = NULL,
bw = NULL,
verbose = TRUE,
plot = TRUE,
ext.out = FALSE,
htest = FALSE,
level = 0.95,
digits = max(3, getOption("digits") - 3),
timeout = 30
) | |
R_documentation/7053AUsingRforSignif_98_0.txt | ` 95 percent confidence interval: ` | |
R_documentation/7053AUsingRforSignif_135_0.txt | ` alternative hypothesis: true difference in means is not equal to 0 ` | |
R_documentation/7053AUsingRforSignif_27_0.txt | { "00:_Front_Matter" : "property get [Map
MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass230_0.<PageSubPageProperty>b__1]()",
"01:_R_and_RStudio" : "property get [Map
MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass230_0.<PageSubPageProperty>b__1]()",
"02:_Types_of_Data" : "... | |
R_documentation/7053AUsingRforSignif_70_0.txt | The code above yields the following output | |
R_documentation/7053AUsingRforSignif_187_0.txt | ` data: microbiological and electrochemical ` | |
R_documentation/7053AUsingRforSignif_137_0.txt | ` -6.028684 1.537775 ` | |
R_documentation/testVar_11_0.txt | A numeric vector of total variances for all genes. | |
R_documentation/7053AUsingRforSignif_126_0.txt | ` # create vectors to store the data ` | |
R_documentation/dctest_51_0.txt | # Discontinuity
x <- runif(1000, -1, 1)
x <- x + 2 * (runif(1000, -1, 1) > 0 & x < 0)
dc_test(x, 0) | |
R_documentation/varTesthtml_40_0.txt | # Clean up
rm(dat) | |
R_documentation/7053AUsingRforSignif_147_0.txt | ### Dixon Q-test | |
R_documentation/7053AUsingRforSignif_69_0.txt | ` var.test(x = sample1, y = sample2, ratio = 1, alternative = "two.sided",
conf.level = 0.95) ` | |
R_documentation/7053AUsingRforSignif_99_0.txt | ` 98.46717 98.70883 ` | |
R_documentation/7053AUsingRforSignif_196_0.txt | ` # run a two-tailed wilcoxson signed rank test, setting mu to 0 as the null
hypothesis is ` | |
R_documentation/dctest_30_0.txt | A numeric value containing bandwidth to use. If no bandwidth is supplied, the
default uses bandwidth selection calculation from McCrary (2008). | |
R_documentation/dctest_6_0.txt | ` dc_test ` implements the McCrary (2008) sorting test to identify violations
of assignment rules. It is based on the ` DCdensity ` function in the "rdd"
package. | |
R_documentation/dctest_49_0.txt | [ Run this code
](https://www.datacamp.com/datalab/preview?_tag=rdocs&rdocsPath=packages%2Frddapp%2Fversions%2F1.3.2%2Ftopics%2Fdc_test&utm_source=r-docs&utm_medium=docs&utm_term=dc_test&utm_content=run_example_in_datalab) | |
R_documentation/7053AUsingRforSignif_158_0.txt | The reported _p_ -value of less than \\(2.2 \times 10^{-16}\\) is less than
our critical value for \\(\alpha\\) of 0.05, which suggests that the penny
with a mass of 2.514 g is drawn from a different population than the other
pennies. | |
R_documentation/7053AUsingRforSignif_0_0.txt | Skip to main content | |
R_documentation/7053AUsingRforSignif_104_0.txt | ### Using R to Compare Means for Two Samples | |
R_documentation/7053AUsingRforSignif_210_0.txt | ` b = c(100, 98, 102) ` | |
R_documentation/7053AUsingRforSignif_72_0.txt | ` data: sample1 and sample2 ` | |
R_documentation/dctest_13_0.txt | The standard error of ` theta ` . | |
R_documentation/7053AUsingRforSignif_90_0.txt | ` # run a two-sided t-test, using mu to define the expected mean; because the
default values ` | |
R_documentation/varTesthtml_8_0.txt | numeric vector of observations. Missing ( ` NA ` ), undefined ( ` NaN ` ), and
infinite ( ` Inf ` , ` -Inf ` ) values are allowed but will be removed. | |
R_documentation/7053AUsingRforSignif_253_0.txt | [ 4.0 ](https://chem.libretexts.org/Special:Search?tags=licenseversion%3A40) | |
R_documentation/dctest_39_0.txt | level | |
R_documentation/varTesthtml_4_0.txt | ### Usage | |
R_documentation/7053AUsingRforSignif_174_0.txt | ` wilcox.test(x, y = NULL, alternative = c("two.sided", "less", "greater"), mu
= 0, ` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.