R2k {pAnalysis} | R Documentation |
Conversion of standard R2 to a noise/dof-independent value
Description
This function converts a vector of R2 values to a vector of noise-baselined, dof-independent and noise distribution-independent values. The resulting R2k values may vary from -inf to +1 where any negative value indicates it is indistinguishable from noise and should be discarded. Positive values indicate the R2k value is distinguishable from noise and allow direct comparison to other R2k values that may have been arrived at from models of different degrees of freedom.
Usage
R2k(R2, dof, pct=0.95, ndecimals=3,...)
Arguments
R2 |
a vector of real numbers between 0 and 1 |
dof |
the number of degrees of freedom; an integer. |
pct |
percentile of allowable noise expressed as a number between 0 and 1. Default is 0.95. |
ndecimals |
the number of decimal places in the result |
... |
other arguments used in calls to pcdfs() |
Value
R2k is a value between 0 and 1
Author(s)
Joseph G. Kreke, PhD
Examples
r2a <- 0.839
dof <- 10
r2ka <- R2k(r2a, dof)
r2b <- runif(n=20,min=0.71,max=0.73)
r2kb <- R2k(r2b, dof)