R2GUESS
and returns
the empirical FDR-controlled level for the significance of the MPPIFDR.permutation
will first run GUESS in
parallel (over CPUs) for several permutations of the Y
matrix
mimicking the null hypothesis of no association. Results from the
permutation procedure will subsequently be used to derive the
cut-off values for the Marginal Posterior Probability of Inclusion
(MPPI
) ensuring an empirical FDR control at a user-defined
level. Several cut-off values will be investigated and, for each, the
corresponding empirical FDR will be returned. The cut-off value
providing the closest FDR estimate to the desired level will be
retained. Exact match to the desired level will be achieved by linear
interpolation. The latter is based on the same calculation as in
Analysis.permutation
.
FDR.permutation(x,path.input = NULL, Npermut, start.counter=1,
path.output = NULL, threshold = 0.05, nbcpu = NULL, number.cutoff=200)
an object of class ESS
.
path to the directory containing the permuted re-samples of
the Y
matrix. By default (=NULL
), the permuted
outcomes are stored in the same directory as the results from
the original R2GUESS
run
(path.input
).
path to the directory in which results from
permuted data are stored. By default (=NULL), these are saved in
the directory where results from the original GUESS
run
were stored (path.output
).
number of permutations to run.
defines the integer from which to start labelling permutation runs.
numeric value specifying the desired FDR level.
integer indicating the number of CPUs to use for the permutation procedure. This number has to be lower than the number of cores available on the platform. By default (=NULL), the function uses a single core.
numeric value specifying the number of points on which to base the FDR estimation.
FDR.permutation
generates permutation re-samples from
the original Y
matrix and generates for each permutation
standard R2GUESS
output files. Sets of results can be separately
analysed using Analysis.permutation
. The function also
returns a list containing the following fields:
the MPPI threshold to control empirical FDR at a specified level.
the linearly interpolated (across the
number.cutoff
points) cut-off value of MPPI exactly controlling
the FDR at the specified level.
the vector of cut-off values investigated (containing
number.cutoff
elements).
empirical FDR corresponding to the cutoff.MPI
value.
empirical FDR value estimated by linear interpolation for the cutoff_int
value.
a vector of empirical FDR values computed by
linear interpolation for each cutoff_St
values investigated.
# NOT RUN {
modelY_Hopx <- example.as.ESS.object()
path.output.perm <- tempdir()
path.input.perm <-path.output.perm
cutoff <- FDR.permutation(x=modelY_Hopx,Npermut=100,start.counter=1,
path.output=path.output.perm,path.input=path.input.perm,nbcpu=3)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab