Description Usage Arguments Value
View source: R/AnalyzeMetaboliteData.R
Choose the number of potential instruments using a q-value threshold
1 2 3 4 5 6 7 8 | Num.Instruments(
Y,
Cov = NULL,
max.miss.C = 0.05,
max.missing.consider = 0.5,
K.max = NULL,
q.thresh = c(0.01, 0.05, 0.1)
)
|
Y |
a |
Cov |
a |
max.miss.C |
a number between 0 and 1. The maximum fraction of missing data a metabolite is allowed to have to be considered nearly completely observed. The default, and recommended value, is 0.05. |
max.missing.consider |
a number between 0 and 1. The maximum fraction of missing data a metabolite is allowed to have. Any metabolites with missingness fractions greater than this will be ignored. Default, and recommended value, is 0.5. |
K.max |
an integer >=2. The maximum number of potential instruments to consider. If unspecified, it is set to be sva::num.sv estimate for K applied to the metabolites with complete data. |
q.thresh |
a vector of numbers between 0 and 1. The q-value thresholds to consider. It defaults to c(0.01, 0.05, 0.1). |
a list.
Frac1 |
a |
Frac2 |
a |
frac.thresh |
The fraction of factors with q-value < 0.05. If this is < 0.75, we recommend not estimating the missingness mechanism. |
K.recommended |
The recommended K (a scalar). This can be used as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.