cor.pearson.r.onesample.simple: One Sample Test of Pearson's Correlation Coefficient

View source: R/cor.pearson.r.onesample.simple.R

cor.pearson.r.onesampleR Documentation

One Sample Test of Pearson's Correlation Coefficient

Description

Calculate test of significance for Pearson's Correlation Coefficient.

Usage

cor.pearson.r.onesample(
  x,
  y,
  null.hypothesis.rho = 0,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  na.rm = T
)

cor.pearson.r.onesample.simple(
  sample.r,
  sample.size,
  null.hypothesis.rho = 0,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95
)

Arguments

x

Vector - Variable 1 values

y

Vector - Variable 2 values

null.hypothesis.rho

Scalar - The assumed value of rho to test the sample correlation coefficient against.

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

sample.r

Scalar - Sample correlation coefficient.

sample.size

Scalar - Sample size to use for the calculation.

Value

Hypothesis test result showing results of test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.