Learn R Programming

matie (version 1.0)

ma.test: P value for an association score.

Description

This function computes a p value for an association score using interpolation (fast - only available for the bivariate case) or a permutation test.

Usage

ma.test(d, maStruct, permPartition, lookup, reps)

Arguments

Value

Returns a real number in the range [0,1].

Details

Computes a p value for an association from the likelihood ratio statistic computed by ma. Uses interpolation by default for bivariate associations, and permutation testing for multivariate associations.

References

coming soon

See Also

ma

Examples

Run this code
d <- shpd(n=100,m=2,Rsq=0.2)
    aScore <- ma(d)
    ma.test(d, aScore)
    # or set lookup to FALSE if you have computing time available
    # ma.test(d, aScore, lookup=FALSE, reps=10000)

Run the code above in your browser using DataLab