betatest function

Permutation test of assication

Permutation test of assication

Calculate the p-value for the test of association between two variables using the permutation method.

betatest(x, y)

Arguments

  • x: First vector to be associated.
  • y: First vector to be associated.

Returns

p-value

Examples

#Example using data from plant Qn1 from the CO2 data set.^M betatest(CO2[CO2$Plant=="Qn1",4],CO2[CO2$Plant=="Qn1",5])
  • Maintainer: John E. Kolassa
  • License: GPL-2
  • Last published: 2023-08-30

Useful links