Learn R Programming

MultNonParam (version 1.3.9)

betatest: Permutation test of assication

Description

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

Usage

betatest(x, y)

Value

p-value

Arguments

x

First vector to be associated.

y

First vector to be associated.

Examples

Run this code
#Example using data from plant Qn1 from the CO2 data set.^M
betatest(CO2[CO2$Plant=="Qn1",4],CO2[CO2$Plant=="Qn1",5])

Run the code above in your browser using DataLab