cor_test.formula | R Documentation |
stats::cor.test()
in stats accepts formulas of the
shape ~ y + x
. The mosaic package allows the use
of y ~ x
as an alternative formula shape.
## S3 method for class 'formula'
cor_test(formula, ...)
cor.test(x, ...)
cor_test(x, ...)
## Default S3 method:
cor_test(x, y, ...)
formula |
a formula |
... |
other arguments passed to |
x , y |
numeric vectors of data values. x and y must have the same length. |
stats::cor.test()
in the stats package.
# This is an example from example(stats::cor.test) done in old and new style
require(graphics)
cor.test(~ CONT + INTG, data = USJudgeRatings)
cor.test(CONT ~ INTG, data = USJudgeRatings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.