R2pTable: Creates a table R2p values for combinations of degrees of freedom and percentiles
Description
R2pTable builds a table (a data frame) of baseline noise levels (R2p values) for each combination of
degree of freedom and percentile. A matrix is created with the number of rows equal to
the length of doflist and the number of columns equal to the length of pctlist.
The elements of this matrix are the results of calls to the R2p function with arguments of each of combination of
the elements of doflist and pctlist. Additional arguments desired for R2p can be passed along through these calls.
The resulting matrix is converted to a data frame. Although it takes a few seconds longer, we recommend
using order=5 for sufficient accuracy. (order=4 is the default to meet the CRAN recommendation that default functions
should take no more than a few seconds.)
a vector of percentiles of acceptable noise expressed as numbers between 0 and 1
order
order of magnitude of samples
ndecimals
the number of decimal places in the result
...
refers to any argument used by calls with the R2pTable routine, specifically, R2p() and pcdfs()
Value
R2pTable returns a data frame of R2p values -- each column corresponds to a different percentile and each row's name
corresponds to a different degree of freedom.
Details
R2pTable can be used to generate a handy table of R2p values. R2pTable is also useful for generating a table used for plotting R2p for several values of pct. However, when generating many values, the processing time increases and it might take awhile to build the table. It takes about 1min to generate R2ps for 60 degrees of freedom with order=5 and one value of pct.